Replace auto_ptr to prevent possible undefined behavior

This commit is contained in:
Thomas Geymayer 2013-07-04 16:08:58 +02:00
parent d0ff144753
commit 92f363926e
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@
#include <osg/NodeCallback>
#include <osg/observer_ptr>
#include <memory>
#include <boost/scoped_ptr.hpp>
#include <string>
namespace simgear
@ -168,7 +168,7 @@ namespace canvas
SystemAdapterPtr _system_adapter;
CanvasMgr *_canvas_mgr;
std::auto_ptr<EventManager> _event_manager;
boost::scoped_ptr<EventManager> _event_manager;
int _size_x,
_size_y,

View File

@ -18,6 +18,7 @@
#include "CanvasMgr.hxx"
#include "Canvas.hxx"
#include "CanvasEventManager.hxx"
#include <boost/bind.hpp>