summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-20 16:16:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-20 21:01:56 +0200
commit42f5b019dd508be71545c54e00b860f3a2b6c7fb (patch)
treea83dc695c020588f62b736d7418c4adf9d71a471 /svx
parentb285ea8606b99e2b85125ddf84af0e5e634bdd86 (diff)
no need to allocate the selectionOverlay separately in SvxTableController
Change-Id: Ifa4696991c79c9fa56aa4ccbb264c7c34110b85e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119289 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/table/tablecontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 83561dcc9550..e12d5fb1d68b 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -2357,7 +2357,7 @@ void SvxTableController::updateSelectionOverlay()
std::unique_ptr<sdr::overlay::OverlayObjectCell> pOverlay(new sdr::overlay::OverlayObjectCell( aHighlight, aRanges ));
xOverlayManager->add(*pOverlay);
- mpSelectionOverlay.reset(new sdr::overlay::OverlayObjectList);
+ mpSelectionOverlay.emplace();
mpSelectionOverlay->append(std::move(pOverlay));
}
}