summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-05 15:16:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-06 09:21:58 +0000
commit0c82dff153d92150729815b919854a9a350aa031 (patch)
tree9bda3cba13d9534460b2fe7919b00009e8ffd425 /sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx
parent9458ce11084579b020650fecb1165052c16ee556 (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/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx')
-rw-r--r--sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx6
1 files changed, 3 insertions, 3 deletions
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);
}
}
}