[Commits] [wesnoth/wesnoth] 36e470: fix copy assignment operator for unit

GitHub noreply at github.com
Fri Dec 12 21:48:02 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 36e4707ba77b12347c952725da62076bd68a90b7
      https://github.com/wesnoth/wesnoth/commit/36e4707ba77b12347c952725da62076bd68a90b7
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-12-12 (Fri, 12 Dec 2014)

  Changed paths:
    M src/unit.cpp
    M src/unit.hpp

  Log Message:
  -----------
  fix copy assignment operator for unit

The new version is exception safe, using copy and swap, and should
be correct with reference counting.





More information about the Commits mailing list