diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-05 15:16:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-06 09:21:58 +0000 |
commit | 0c82dff153d92150729815b919854a9a350aa031 (patch) | |
tree | 9bda3cba13d9534460b2fe7919b00009e8ffd425 /sd | |
parent | 9458ce11084579b020650fecb1165052c16ee556 (diff) |
loplugin:singlevalfields
Change-Id: Ia681765aa1da5c80a3dbe91b7376af841a9c9ec1
Reviewed-on: https://gerrit.libreoffice.org/36145
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx | 1 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx b/sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx index 05eb4b876df8..09fe26d72520 100644 --- a/sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx +++ b/sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx @@ -80,7 +80,6 @@ public: private: SlideSorter& mrSlideSorter; bool mbIsVisible; - const sal_Int32 mnLayerIndex; SharedILayerInvalidator mpLayerInvalidator; // Center of the insertion indicator. Point maLocation; diff --git a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx index 036ebc2c15a2..32dbf8920819 100644 --- a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx +++ b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx @@ -61,11 +61,11 @@ namespace sd { namespace slidesorter { namespace view { //===== InsertionIndicatorOverlay =========================================== const static sal_Int32 gnShadowBorder = 3; +const static sal_Int32 gnLayerIndex = 2; InsertionIndicatorOverlay::InsertionIndicatorOverlay (SlideSorter& rSlideSorter) : mrSlideSorter(rSlideSorter), mbIsVisible(false), - mnLayerIndex(2), mpLayerInvalidator(), maLocation(), maIcon(), @@ -326,7 +326,7 @@ void InsertionIndicatorOverlay::Show() mrSlideSorter.GetView().GetLayeredDevice()); if (pLayeredDevice) { - pLayeredDevice->RegisterPainter(shared_from_this(), mnLayerIndex); + pLayeredDevice->RegisterPainter(shared_from_this(), gnLayerIndex); if (mpLayerInvalidator) mpLayerInvalidator->Invalidate(GetBoundingBox()); } @@ -345,7 +345,7 @@ void InsertionIndicatorOverlay::Hide() { if (mpLayerInvalidator) mpLayerInvalidator->Invalidate(GetBoundingBox()); - pLayeredDevice->RemovePainter(shared_from_this(), mnLayerIndex); + pLayeredDevice->RemovePainter(shared_from_this(), gnLayerIndex); } } } |