summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/edit.cxx4
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;
}