diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:31:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:38 +0100 |
commit | 5429049e3b8fd12e84aca83be7ca19e52920f672 (patch) | |
tree | 3b473be72f20a82357bd3f8ee7aa558b6b517e99 /include/svx/svdlayer.hxx | |
parent | 0d05f417c3a7dcde89f5e15b29f39ce2db65b543 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Ic90647cc4da716b54b00520b683cee027a664c22
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 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<SdrLayer*>(((const SdrLayerAdmin*)this)->GetLayerPerID(nID)); } const SdrLayer* GetLayerPerID(sal_uInt16 nID) const; void SetControlLayerName(const OUString& rNewName); |