summaryrefslogtreecommitdiff
path: root/sw/inc/editsh.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-25 06:46:49 +0200
committerNoel Grandin <noel@peralex.com>2014-11-25 08:43:18 +0200
commit7ca3303aaadd20dcc1d6e08bdeba38021cbec4bb (patch)
tree3a60619f0a451bf8465f7ef3f3bd99443aa40439 /sw/inc/editsh.hxx
parent643283d4b3b8581fa5aa9b47cda90583b4aed3e7 (diff)
loplugin: cstylecast
Change-Id: Idc6c34d8b3cfab35c7dc841a9ff70c218e0282df
Diffstat (limited to 'sw/inc/editsh.hxx')
-rw-r--r--sw/inc/editsh.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index b59cc50e94cc..d0b781764fed 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -869,7 +869,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;
@@ -955,7 +955,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 {