starmath/source/edit.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 83965d7f4ff1fb8e7bce6d5e0be8f610a07756b6 Author: Julien Nabet <serval2...@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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits