diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:31:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:38 +0100 |
commit | 6f3c52bb37f52f57fea6479f1da6c1828fbd85fe (patch) | |
tree | d8e6db66db4c28335a62fbec4a282541ae083a85 /sw/inc/editsh.hxx | |
parent | 5429049e3b8fd12e84aca83be7ca19e52920f672 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Icb14a036ea9d7636359b6bc5e0af17568c0d54cb
Diffstat (limited to 'sw/inc/editsh.hxx')
-rw-r--r-- | sw/inc/editsh.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index 8dc3098c4bee..c617931309d7 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -863,7 +863,7 @@ public: /// Query NumberFormater from document. SvNumberFormatter* GetNumberFormatter(); const SvNumberFormatter* GetNumberFormatter() const - { return ((SwEditShell*)this)->GetNumberFormatter(); } + { return const_cast<SwEditShell*>(this)->GetNumberFormatter(); } /// Interfaces for GlobalDocument. bool IsGlobalDoc() const; @@ -948,7 +948,7 @@ private: }; inline const sfx2::LinkManager& SwEditShell::GetLinkManager() const -{ return ((SwEditShell*)this)->GetLinkManager(); } +{ return const_cast<SwEditShell*>(this)->GetLinkManager(); } /// Class for automated call of Start- and EndAction(). class SwActContext { |