Code

Use subdirectories with icon sizes.
[inkscape.git] / src / libnr / nr-convex-hull.h
index 51dabcf07f1300a8c91bf336d9156eddbc94e7ff..dafdd8840bb69c7e7cf4b23ec652ff2f938888c6 100644 (file)
@@ -20,11 +20,11 @@ public:
     ConvexHull() : _bounds() {}
        explicit ConvexHull(Point const &p) : _bounds(Rect(p, p)) {}
 
-    Maybe<Point> midpoint() const {
+    boost::optional<Point> midpoint() const {
         if (_bounds) {
             return _bounds->midpoint();
         } else {
-            return Nothing();
+            return boost::optional<Point>();
         }
     }
 
@@ -46,12 +46,12 @@ public:
         }
        }
 
-       Maybe<Rect> const &bounds() const {
+       boost::optional<Rect> const &bounds() const {
                return _bounds;
        }
        
 private:
-    Maybe<Rect> _bounds;
+    boost::optional<Rect> _bounds;
 };
 
 } /* namespace NR */