From: Thomas Geymayer Date: Thu, 4 Jul 2013 14:08:58 +0000 (+0200) Subject: Replace auto_ptr to prevent possible undefined behavior X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=92f363926e58403b12b0cddbc57071786a1f622d;p=simgear.git Replace auto_ptr to prevent possible undefined behavior --- diff --git a/simgear/canvas/Canvas.hxx b/simgear/canvas/Canvas.hxx index f132a7cf..08fbe40d 100644 --- a/simgear/canvas/Canvas.hxx +++ b/simgear/canvas/Canvas.hxx @@ -29,7 +29,7 @@ #include #include -#include +#include #include namespace simgear @@ -168,7 +168,7 @@ namespace canvas SystemAdapterPtr _system_adapter; CanvasMgr *_canvas_mgr; - std::auto_ptr _event_manager; + boost::scoped_ptr _event_manager; int _size_x, _size_y, diff --git a/simgear/canvas/CanvasMgr.cxx b/simgear/canvas/CanvasMgr.cxx index 3c087774..55ab24a2 100644 --- a/simgear/canvas/CanvasMgr.cxx +++ b/simgear/canvas/CanvasMgr.cxx @@ -18,6 +18,7 @@ #include "CanvasMgr.hxx" #include "Canvas.hxx" +#include "CanvasEventManager.hxx" #include