diff OrthancStone/Sources/Scene2D/MacroSceneLayer.cpp @ 1610:b7630b1a0253

ISceneLayer::GetBoundingBox() returns void
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Oct 2020 17:13:13 +0100
parents 5f5c549499ff
children 787db80a5a1b
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2D/MacroSceneLayer.cpp	Thu Oct 29 17:01:29 2020 +0100
+++ b/OrthancStone/Sources/Scene2D/MacroSceneLayer.cpp	Thu Oct 29 17:13:13 2020 +0100
@@ -69,21 +69,17 @@
   }
   
 
-  bool MacroSceneLayer::GetBoundingBox(Extent2D& target) const
+  void MacroSceneLayer::GetBoundingBox(Extent2D& target) const
   {
-    target.Reset();
+    target.Clear();
 
     for (size_t i = 0; i < layers_.size(); i++)
     {
       assert(layers_[i] != NULL);
 
       Extent2D subextent;
-      if (layers_[i]->GetBoundingBox(subextent))
-      {
-        target.Union(subextent);
-      }
+      layers_[i]->GetBoundingBox(subextent);
+      target.Union(subextent);
     }
-
-    return true;
   }
 }