diff OrthancStone/Sources/Scene2D/NullLayer.h @ 1610:b7630b1a0253

ISceneLayer::GetBoundingBox() returns void
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Oct 2020 17:13:13 +0100
parents 8563ea5d8ae4
children 9ac2a65d4172
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2D/NullLayer.h	Thu Oct 29 17:01:29 2020 +0100
+++ b/OrthancStone/Sources/Scene2D/NullLayer.h	Thu Oct 29 17:13:13 2020 +0100
@@ -37,7 +37,9 @@
   class NullLayer : public ISceneLayer
   {
   public:
-    NullLayer() {}
+    NullLayer()
+    {
+    }
 
     virtual ISceneLayer* Clone() const ORTHANC_OVERRIDE
     {
@@ -49,10 +51,9 @@
       return Type_NullLayer;
     }
 
-    virtual bool GetBoundingBox(Extent2D& target) const ORTHANC_OVERRIDE
+    virtual void GetBoundingBox(Extent2D& target) const ORTHANC_OVERRIDE
     {
-      target = Extent2D();
-      return false; 
+      target.Clear();
     }
 
     virtual uint64_t GetRevision() const ORTHANC_OVERRIDE