[Commits] [wesnoth/wesnoth] c4064f: GUI2: deployed map (and minor vector) emplace wher...

GitHub noreply at github.com
Tue Apr 4 10:11:01 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c4064f68f6d2616add0df2f9dc59994ed67db87d
      https://github.com/wesnoth/wesnoth/commit/c4064f68f6d2616add0df2f9dc59994ed67db87d
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-04-04 (Tue, 04 Apr 2017)

  Changed paths:
    M src/gui/core/event/dispatcher_private.hpp
    M src/gui/core/notifier.hpp
    M src/gui/core/timer.cpp
    M src/gui/core/window_builder.cpp
    M src/gui/widgets/generator_private.hpp
    M src/gui/widgets/list.cpp
    M src/gui/widgets/matrix.cpp
    M src/gui/widgets/minimap.cpp
    M src/gui/widgets/settings.cpp

  Log Message:
  -----------
  GUI2: deployed map (and minor vector) emplace where appropriate

Only includes at one or two uses of vector::emplace


  Commit: 2304148302cf98143c422c5f96d11def9eeb38d3
      https://github.com/wesnoth/wesnoth/commit/2304148302cf98143c422c5f96d11def9eeb38d3
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-04-04 (Tue, 04 Apr 2017)

  Changed paths:
    M src/game_events/action_wml.cpp
    M src/playturn_network_adapter.cpp

  Log Message:
  -----------
  Use emplace_back in cases of push_back + config_of

Again, to make use of the move ctor.


Compare: https://github.com/wesnoth/wesnoth/compare/1216adb837b6...2304148302cf


More information about the Commits mailing list