diff options
Diffstat (limited to 'include/svx/svdlayer.hxx')
-rw-r--r-- | include/svx/svdlayer.hxx | 2 |
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); |