From 5429049e3b8fd12e84aca83be7ca19e52920f672 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:31:47 +0100 Subject: const_cast: convert some C-style casts and remove some redundant ones Change-Id: Ic90647cc4da716b54b00520b683cee027a664c22 --- include/svx/svdlayer.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/svx/svdlayer.hxx') diff --git a/include/svx/svdlayer.hxx b/include/svx/svdlayer.hxx index 66d304366699..a0d0dc845e17 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 (SdrLayer*)(((const SdrLayerAdmin*)this)->GetLayerPerID(nID)); } + SdrLayer* GetLayerPerID(sal_uInt16 nID) { return const_cast(((const SdrLayerAdmin*)this)->GetLayerPerID(nID)); } const SdrLayer* GetLayerPerID(sal_uInt16 nID) const; void SetControlLayerName(const OUString& rNewName); -- cgit