diff Framework/Viewport/IViewport.h @ 53:c2dc924f1a63 wasm

removing threading out of the framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Apr 2017 16:57:49 +0200
parents 25befef48c35
children ca644004d2ee
line wrap: on
line diff
--- a/Framework/Viewport/IViewport.h	Thu Apr 27 14:50:40 2017 +0200
+++ b/Framework/Viewport/IViewport.h	Thu Apr 27 16:57:49 2017 +0200
@@ -21,7 +21,6 @@
 
 #pragma once
 
-#include "../Toolbox/IThreadSafety.h"
 #include "IStatusBar.h"
 #include "../Enumerations.h"
 
@@ -29,8 +28,7 @@
 
 namespace OrthancStone
 {
-  // This class must be thread-safe
-  class IViewport : public IThreadSafe
+  class IViewport : public boost::noncopyable
   {
   public:
     class IChangeObserver : public boost::noncopyable
@@ -43,6 +41,10 @@
       virtual void NotifyChange(const IViewport& scene) = 0;
     };
 
+    virtual ~IViewport()
+    {
+    }
+
     virtual void Register(IChangeObserver& observer) = 0;
 
     virtual void Unregister(IChangeObserver& observer) = 0;