summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdlayer.cxx
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 /svx/source/svdraw/svdlayer.cxx
parent56209b9040c63ef422cffe3795d6bd6ef95ec80e (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I35229af6f25db931bd98bdf53add2f2ed65774c0
Diffstat (limited to 'svx/source/svdraw/svdlayer.cxx')
-rw-r--r--svx/source/svdraw/svdlayer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdlayer.cxx b/svx/source/svdraw/svdlayer.cxx
index 46092955266f..57a944fd3350 100644
--- a/svx/source/svdraw/svdlayer.cxx
+++ b/svx/source/svdraw/svdlayer.cxx
@@ -269,7 +269,7 @@ sal_uInt16 SdrLayerAdmin::GetLayerPos(SdrLayer* pLayer) const
SdrLayer* SdrLayerAdmin::GetLayer(const OUString& rName, bool bInherited)
{
- return const_cast<SdrLayer*>(((const SdrLayerAdmin*)this)->GetLayer(rName, bInherited));
+ return const_cast<SdrLayer*>(const_cast<const SdrLayerAdmin*>(this)->GetLayer(rName, bInherited));
}
const SdrLayer* SdrLayerAdmin::GetLayer(const OUString& rName, bool /*bInherited*/) const