[Libreoffice-commits] core.git: starmath/source
Julien Nabet
serval2412 at yahoo.fr
Sun Mar 8 05:40:54 PDT 2015
starmath/source/edit.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 83965d7f4ff1fb8e7bce6d5e0be8f610a07756b6
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Mar 8 13:39:42 2015 +0100
cppcheck: cstyleCast
Change-Id: Ia51cea076e5368956bcd87dd201d15eafbf6ff24
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index f05a04e..da0a420 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;
}
More information about the Libreoffice-commits
mailing list