[Commits] [wesnoth/wesnoth] b6639b: Use emplace_back() instead of push_back("")

GitHub noreply at github.com
Sat Apr 22 16:18:40 UTC 2017


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

  Changed paths:
    M src/campaign_server/control.hpp
    M src/display.cpp
    M src/font/sdl_ttf.cpp
    M src/map/location.cpp
    M src/serialization/parser.cpp
    M src/widgets/menu.cpp

  Log Message:
  -----------
  Use emplace_back() instead of push_back("")

Not going to have any performance difference since the copy overhead of an empty string is probably tiny.





More information about the Commits mailing list