Code

NR::Maybe => boost::optional
[inkscape.git] / src / rubberband.cpp
index 58f88bbfbf90ac75c8ea9c6f662b93767e4673b8..73333a555278f76a182104790bd6219f2c331d34 100644 (file)
@@ -126,10 +126,10 @@ void Inkscape::Rubberband::setMode(int mode)
     _mode = mode;
 }
 
-NR::Maybe<NR::Rect> Inkscape::Rubberband::getRectangle() const
+boost::optional<NR::Rect> Inkscape::Rubberband::getRectangle() const
 {
     if (!_started) {
-        return NR::Nothing();
+        return boost::optional<NR::Rect>();
     }
 
     return NR::Rect(_start, _end);