diff Framework/Viewport/WebGLViewportsRegistry.cpp @ 1299:c38c89684d83 broker

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 17:21:24 +0100
parents 0ca50d275b9a
children ab81ee8fce1f
line wrap: on
line diff
--- a/Framework/Viewport/WebGLViewportsRegistry.cpp	Sun Feb 23 15:32:24 2020 +0100
+++ b/Framework/Viewport/WebGLViewportsRegistry.cpp	Mon Mar 02 17:21:24 2020 +0100
@@ -63,7 +63,7 @@
         boost::shared_ptr<WebGLViewport> viewport;
           
         {
-          std::auto_ptr<IViewport::ILock> lock(it->second->Lock());
+          std::unique_ptr<IViewport::ILock> lock(it->second->Lock());
           viewport = boost::make_shared<WebGLViewport>(it->first, lock->GetController().GetScene());
         }
 
@@ -72,7 +72,7 @@
 
         // Tag the fresh canvas as needing a repaint
         {
-          std::auto_ptr<IViewport::ILock> lock(it->second->Lock());
+          std::unique_ptr<IViewport::ILock> lock(it->second->Lock());
           lock->Invalidate();
         }
       }