diff Framework/Viewport/WebGLViewportsRegistry.h @ 1242:b9b5d4378874 broker

working of WebAssemblyOracle
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jan 2020 18:08:05 +0100
parents e71ee3e88448
children 0ca50d275b9a
line wrap: on
line diff
--- a/Framework/Viewport/WebGLViewportsRegistry.h	Mon Dec 30 10:54:26 2019 +0100
+++ b/Framework/Viewport/WebGLViewportsRegistry.h	Mon Jan 06 18:08:05 2020 +0100
@@ -36,7 +36,7 @@
   class WebGLViewportsRegistry : public boost::noncopyable
   {
   private:
-    typedef std::map<std::string, WebGLViewport*>  Viewports;
+    typedef std::map<std::string, boost::shared_ptr<WebGLViewport> >  Viewports;
 
     double     timeoutMS_;
     Viewports  viewports_;
@@ -55,7 +55,7 @@
       Clear();
     }
 
-    void Add(const std::string& canvasId);
+    boost::shared_ptr<WebGLViewport> Add(const std::string& canvasId);
 
     void Remove(const std::string& canvasId);