summaryrefslogtreecommitdiff
path: root/include/svtools/fmtfield.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:31:36 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:37 +0100
commit0d05f417c3a7dcde89f5e15b29f39ce2db65b543 (patch)
tree52f3890d679ef16bdd74c075a0e89f7cc036b087 /include/svtools/fmtfield.hxx
parent3b9e0676b0a193dbf802a6b703827c9cc0689900 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Iabe2ecce65a91b003fe042a22630131449968fd8
Diffstat (limited to 'include/svtools/fmtfield.hxx')
-rw-r--r--include/svtools/fmtfield.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svtools/fmtfield.hxx b/include/svtools/fmtfield.hxx
index efce83a940c0..bda86e2f4447 100644
--- a/include/svtools/fmtfield.hxx
+++ b/include/svtools/fmtfield.hxx
@@ -244,7 +244,7 @@ protected:
// SetFormatKey without FormatChanged notification
SvNumberFormatter* CreateFormatter() { SetFormatter(StandardFormatter()); return m_pFormatter; }
- SvNumberFormatter* ImplGetFormatter() const { return m_pFormatter ? m_pFormatter : ((FormattedField*)this)->CreateFormatter(); }
+ SvNumberFormatter* ImplGetFormatter() const { return m_pFormatter ? m_pFormatter : const_cast<FormattedField*>(this)->CreateFormatter(); }
bool PreNotify(NotifyEvent& rNEvt) SAL_OVERRIDE;