summaryrefslogtreecommitdiff
path: root/sw/inc/editsh.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-25 20:54:35 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-25 20:54:35 +0200
commit8b33808a1127c4552735f7a618e9639c6d109686 (patch)
tree44a8e9dfe4dd4c70d5733d05c41b626bfc851ca3 /sw/inc/editsh.hxx
parente7ac7ba7de64068f0264b71bc4d9ff182e278338 (diff)
Revert "loplugin: cstylecast"
The change was broken. Luckily MSVC noticed: sw\inc\doc.hxx(1707) : warning C4717: 'SwDoc::GetNumberFormatter' : recursive on all control paths, function will cause runtime stack overflow. This reverts commit 7ca3303aaadd20dcc1d6e08bdeba38021cbec4bb.
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 d0b781764fed..b59cc50e94cc 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 const_cast<SwEditShell*>(this)->GetNumberFormatter(); }
+ { return ((SwEditShell*)this)->GetNumberFormatter(); }
/// Interfaces for GlobalDocument.
bool IsGlobalDoc() const;
@@ -955,7 +955,7 @@ private:
};
inline const sfx2::LinkManager& SwEditShell::GetLinkManager() const
-{ return const_cast<SwEditShell*>(this)->GetLinkManager(); }
+{ return ((SwEditShell*)this)->GetLinkManager(); }
/// Class for automated call of Start- and EndAction().
class SwActContext {