[Commits] [wesnoth/wesnoth] 34df48: Preprocessor: refactor streambuf management of pre...

GitHub noreply at github.com
Tue Aug 29 03:15:58 UTC 2017


  Branch: refs/heads/preprocessor_cleanup
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 34df48195a42fd83af200ef363383e47ef0b3f95
      https://github.com/wesnoth/wesnoth/commit/34df48195a42fd83af200ef363383e47ef0b3f95
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-08-29 (Tue, 29 Aug 2017)

  Changed paths:
    M src/serialization/preprocessor.cpp

  Log Message:
  -----------
  Preprocessor: refactor streambuf management of preprocessor objects

Instead of using this complex system where new processor objects registered themselves as the
current preprocessor object in the base class ctor (this led to freestanding `new` statements
that looked like memory leaks), we now use a deque of unique_ptrs in the streambuf class. This
makes the code a lot clearer since all the memory management is is one place.





More information about the Commits mailing list