Added use of ref_ptr<>

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14870 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-05-26 08:48:33 +00:00
parent 95a507299b
commit 05841d7c00
2 changed files with 2 additions and 2 deletions

View File

@ -1112,7 +1112,7 @@ void CompositeViewer::eventTraversal()
// create a frame event for the new frame.
{
osgGA::GUIEventAdapter* event = view->getEventQueue()->frame( getFrameStamp()->getReferenceTime() );
osg::ref_ptr<osgGA::GUIEventAdapter> event = view->getEventQueue()->frame( getFrameStamp()->getReferenceTime() );
if (!_previousEvent || _previousEvent->getNumPointerData()<2)
{

View File

@ -987,7 +987,7 @@ void Viewer::eventTraversal()
// create a frame event for the new frame.
{
osgGA::GUIEventAdapter* event = _eventQueue->frame( getFrameStamp()->getReferenceTime() );
osg::ref_ptr<osgGA::GUIEventAdapter> event = _eventQueue->frame( getFrameStamp()->getReferenceTime() );
if (!eventState || eventState->getNumPointerData()<2)
{