diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-03-08 13:39:42 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-03-08 13:39:42 +0100 |
commit | 83965d7f4ff1fb8e7bce6d5e0be8f610a07756b6 (patch) | |
tree | 396177a3dd431a7ce90034c2e5105a6738ba978f /starmath | |
parent | 791734d40b128367d4f76ec3087420462e51e37a (diff) |
cppcheck: cstyleCast
Change-Id: Ia51cea076e5368956bcd87dd201d15eafbf6ff24
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/edit.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index f05a04e346a1..da0a420e9f9d 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -731,7 +731,7 @@ void SmEditWindow::LoseFocus() bool SmEditWindow::IsAllSelected() const { bool bRes = false; - EditEngine *pEditEngine = ((SmEditWindow *) this)->GetEditEngine(); + EditEngine *pEditEngine = (const_cast<SmEditWindow *>(this))->GetEditEngine(); OSL_ENSURE( pEditView, "NULL pointer" ); OSL_ENSURE( pEditEngine, "NULL pointer" ); if (pEditEngine && pEditView) @@ -945,7 +945,7 @@ void SmEditWindow::SetSelection(const ESelection &rSel) bool SmEditWindow::IsEmpty() const { - EditEngine *pEditEngine = ((SmEditWindow *) this)->GetEditEngine(); + EditEngine *pEditEngine = (const_cast<SmEditWindow *>(this))->GetEditEngine(); bool bEmpty = ( pEditEngine && pEditEngine->GetTextLen() == 0 ); return bEmpty; } |