[Commits] [wesnoth/wesnoth] 65dd88: Store pointers in unique_ptr

GitHub noreply at github.com
Tue Jan 16 12:39:35 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 65dd884b50e1ff47cb194f31dad6529e6eb26912
      https://github.com/wesnoth/wesnoth/commit/65dd884b50e1ff47cb194f31dad6529e6eb26912
  Author: Alexander van Gessel <ai0867 at gmail.com>
  Date:   2018-01-16 (Tue, 16 Jan 2018)

  Changed paths:
    M src/serialization/preprocessor.cpp

  Log Message:
  -----------
  Store pointers in unique_ptr


  Commit: f453f1422b37332ce1c185093468c98c933a0f7d
      https://github.com/wesnoth/wesnoth/commit/f453f1422b37332ce1c185093468c98c933a0f7d
  Author: Alexander van Gessel <ai0867 at gmail.com>
  Date:   2018-01-16 (Tue, 16 Jan 2018)

  Changed paths:
    M src/serialization/preprocessor.cpp

  Log Message:
  -----------
  Indicate ownership transfer using unique_ptr argument

Best practice according to GotW #91.
https://herbsutter.com/2013/06/05/gotw-91-solution-smart-pointer-parameters/


Compare: https://github.com/wesnoth/wesnoth/compare/bbdb5ad86ab2...f453f1422b37


More information about the Commits mailing list