summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-27 14:04:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-28 08:39:35 +0200
commite32c56855b04ef825b720b20220245365eec51fd (patch)
treed497c6fad6e3e7ac39a8bc80fa8e81fc7192f199 /sc/source/ui/view/gridwin.cxx
parentb2e8bbeafa35c15d168961de711e4970eb0985cb (diff)
use boost::optional in sc and svgio
instead of using std:unique_ptr to allocate small objects on the heap Change-Id: Ifd309a9bf331910354406b827b89a0363f3b7eda Reviewed-on: https://gerrit.libreoffice.org/51945 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r--sc/source/ui/view/gridwin.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index edca231aee27..803e09809a33 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -417,7 +417,6 @@ ScGridWindow::ScGridWindow( vcl::Window* pParent, ScViewData* pData, ScSplitPos
mpOODragRect(),
mpOOHeader(),
mpOOShrink(),
- mpAutoFillRect(static_cast<tools::Rectangle*>(nullptr)),
pViewData( pData ),
eWhich( eWhichPos ),
mpNoteMarker(),
@@ -6087,10 +6086,10 @@ void ScGridWindow::UpdateAutoFillOverlay()
tools::Rectangle aFillRect(aFillPos, aFillHandleSize);
// expand rect to increase hit area
- mpAutoFillRect.reset(new tools::Rectangle(aFillRect.Left() - fScaleFactor,
+ mpAutoFillRect = tools::Rectangle(aFillRect.Left() - fScaleFactor,
aFillRect.Top() - fScaleFactor,
aFillRect.Right() + fScaleFactor,
- aFillRect.Bottom() + fScaleFactor));
+ aFillRect.Bottom() + fScaleFactor);
// #i70788# get the OverlayManager safely
rtl::Reference<sdr::overlay::OverlayManager> xOverlayManager = getOverlayManager();