summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx b/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx
index ff16fb0e4dac..b495de5d03d6 100644
--- a/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx
@@ -107,7 +107,7 @@ void VisibleAreaManager::MakeVisible()
return;
const Point aCurrentTopLeft (pWindow->PixelToLogic(Point(0,0)));
- const ::boost::optional<Point> aNewVisibleTopLeft (GetRequestedTopLeft());
+ const ::o3tl::optional<Point> aNewVisibleTopLeft (GetRequestedTopLeft());
maVisibleRequests.clear();
if ( ! aNewVisibleTopLeft)
return;
@@ -121,11 +121,11 @@ void VisibleAreaManager::MakeVisible()
aAnimation(1.0);
}
-::boost::optional<Point> VisibleAreaManager::GetRequestedTopLeft() const
+::o3tl::optional<Point> VisibleAreaManager::GetRequestedTopLeft() const
{
sd::Window *pWindow (mrSlideSorter.GetContentWindow().get());
if ( ! pWindow)
- return ::boost::optional<Point>();
+ return ::o3tl::optional<Point>();
// Get the currently visible area and the model area.
const ::tools::Rectangle aVisibleArea (pWindow->PixelToLogic(
@@ -166,9 +166,9 @@ void VisibleAreaManager::MakeVisible()
const Point aRequestedTopLeft (nVisibleLeft, nVisibleTop);
if (aRequestedTopLeft == aVisibleArea.TopLeft())
- return ::boost::optional<Point>();
+ return ::o3tl::optional<Point>();
else
- return ::boost::optional<Point>(aRequestedTopLeft);
+ return ::o3tl::optional<Point>(aRequestedTopLeft);
}
//===== VisibleAreaManager::TemporaryDisabler =================================