[Commits] [wesnoth/wesnoth] d2caa1: Swap the arguments to variant::to_debug_string

GitHub noreply at github.com
Sun Apr 2 16:04:51 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d2caa16515d7238ba0a17080db68327e83229c8b
      https://github.com/wesnoth/wesnoth/commit/d2caa16515d7238ba0a17080db68327e83229c8b
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-02 (Sun, 02 Apr 2017)

  Changed paths:
    M src/formula/callable_fwd.hpp
    M src/formula/debugger.cpp
    M src/formula/function.cpp
    M src/formula/variant.cpp
    M src/formula/variant.hpp
    M src/formula/variant_value.cpp
    M src/formula/variant_value.hpp
    M src/gui/dialogs/formula_debugger.cpp

  Log Message:
  -----------
  Swap the arguments to variant::to_debug_string

The seen stack is an implementation detail that should generally only be
non-null when called recursively from the implementation, so it makes
more sense for it to be the second argument rather than the first.

I did not swap the arguments for variant_value_base::get_debug_string,
because that's entirely internal anyway so it doesn't really matter.





More information about the Commits mailing list