[Commits] [wesnoth/wesnoth] c96db7: dont add gettext paths/domains twice

GitHub noreply at github.com
Sun Dec 14 19:14:27 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c96db7a17e53e7e0ee0bde393e5b10797bab5355
      https://github.com/wesnoth/wesnoth/commit/c96db7a17e53e7e0ee0bde393e5b10797bab5355
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2014-12-14 (Sun, 14 Dec 2014)

  Changed paths:
    M src/gettext_boost.cpp

  Log Message:
  -----------
  dont add gettext paths/domains twice

having the same path multiple times in a boost locale generator slows
down generate() significantly.


  Commit: e99202c580354af6d1995d5fb8fdcd4d3c01e011
      https://github.com/wesnoth/wesnoth/commit/e99202c580354af6d1995d5fb8fdcd4d3c01e011
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2014-12-14 (Sun, 14 Dec 2014)

  Changed paths:
    M src/gettext_boost.cpp

  Log Message:
  -----------
  update the locale lazily

Updating it whenever we add a new messages path or domain could have a
bad performance.


  Commit: 6ab77b47e954a41fd0ce69a55364299b5f717b80
      https://github.com/wesnoth/wesnoth/commit/6ab77b47e954a41fd0ce69a55364299b5f717b80
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2014-12-14 (Sun, 14 Dec 2014)

  Changed paths:
    M src/savegame.cpp

  Log Message:
  -----------
  fix convert old saves

This fixes loading start of scenario saves form 1.10.x

We also use clear_children instead of remove_child to work around  a bug
with config::remove_child and config::has_child : if we remove all of
the configs childs with remove_child then has_child still returns true.


Compare: https://github.com/wesnoth/wesnoth/compare/9b9e9a86705e...6ab77b47e954


More information about the Commits mailing list