summaryrefslogtreecommitdiff
path: root/starmath/inc/symbol.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:31:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:37 +0100
commit67c19855ab24004c29bb0741577432f0ed50d9bf (patch)
treea8c28cf2d101680f231645bc2219482bb17a0ff9 /starmath/inc/symbol.hxx
parentaf3cb5e85a54c5b9653f4757863b8ed15df8477b (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Iee4396c5ac715e1b211c5fa6e1cb66b1e95e3f60
Diffstat (limited to 'starmath/inc/symbol.hxx')
-rw-r--r--starmath/inc/symbol.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/inc/symbol.hxx b/starmath/inc/symbol.hxx
index 2b6df4ff97da..51515406cec8 100644
--- a/starmath/inc/symbol.hxx
+++ b/starmath/inc/symbol.hxx
@@ -144,7 +144,7 @@ public:
SmSym * GetSymbolByName(const OUString& rSymbolName);
const SmSym * GetSymbolByName(const OUString& rSymbolName) const
{
- return ((SmSymbolManager *) this)->GetSymbolByName(rSymbolName);
+ return const_cast<SmSymbolManager *>(this)->GetSymbolByName(rSymbolName);
}
bool IsModified() const { return m_bModified; }