[Commits] [wesnoth/wesnoth] 31a124: SDL/Texture: avoid unnecessary shared_ptr creation
GitHub
noreply at github.com
Wed Jul 19 19:57:11 UTC 2017
Branch: refs/heads/accelerated_rendering
Home: https://github.com/wesnoth/wesnoth
Commit: 31a124dc90e5df5c83a0fb10a0a03440f735af19
https://github.com/wesnoth/wesnoth/commit/31a124dc90e5df5c83a0fb10a0a03440f735af19
Author: Charles Dang <exodia339 at gmail.com>
Date: 2017-07-20 (Thu, 20 Jul 2017)
Changed paths:
M src/sdl/texture.cpp
Log Message:
-----------
SDL/Texture: avoid unnecessary shared_ptr creation
Made use of shared_ptr::reset instead of creating temp shared_ptrs, assigning them to the class ptr,
then deleting them.
More information about the Commits
mailing list