diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-20 16:16:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-20 21:01:56 +0200 |
commit | 42f5b019dd508be71545c54e00b860f3a2b6c7fb (patch) | |
tree | a83dc695c020588f62b736d7418c4adf9d71a471 /svx | |
parent | b285ea8606b99e2b85125ddf84af0e5e634bdd86 (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.cxx | 2 |
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)); } } |