summaryrefslogtreecommitdiff
path: root/include/svx/svdlayer.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:26 +0200
commit3fa5ac8eb9ee6c58d3733a6e2cc18f673d37565d (patch)
treed82fbe9c16be483b5fb0dbb16a86371ad2c3c302 /include/svx/svdlayer.hxx
parent56209b9040c63ef422cffe3795d6bd6ef95ec80e (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I35229af6f25db931bd98bdf53add2f2ed65774c0
Diffstat (limited to 'include/svx/svdlayer.hxx')
-rw-r--r--include/svx/svdlayer.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svx/svdlayer.hxx b/include/svx/svdlayer.hxx
index d485ed995128..0a79bd94b5e2 100644
--- a/include/svx/svdlayer.hxx
+++ b/include/svx/svdlayer.hxx
@@ -137,7 +137,7 @@ public:
SdrLayer* GetLayer(const OUString& rName, bool bInherited);
const SdrLayer* GetLayer(const OUString& rName, bool bInherited) const;
SdrLayerID GetLayerID(const OUString& rName, bool bInherited) const;
- SdrLayer* GetLayerPerID(sal_uInt16 nID) { return const_cast<SdrLayer*>(((const SdrLayerAdmin*)this)->GetLayerPerID(nID)); }
+ SdrLayer* GetLayerPerID(sal_uInt16 nID) { return const_cast<SdrLayer*>(const_cast<const SdrLayerAdmin*>(this)->GetLayerPerID(nID)); }
const SdrLayer* GetLayerPerID(sal_uInt16 nID) const;
void SetControlLayerName(const OUString& rNewName);