summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-03-08 13:36:42 +0100
committerJulien Nabet <serval2412@yahoo.fr>2015-03-08 13:36:42 +0100
commit791734d40b128367d4f76ec3087420462e51e37a (patch)
tree980f5a5e4b2122383c5aeb24278630c7acfd38d6 /starmath
parent79b3e12526c42bd9acc78e7541f49756fc297200 (diff)
Revert "cppcheck: cstyleCast"
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/edit.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 2d4d87f174d7..f05a04e346a1 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -107,12 +107,12 @@ SmEditWindow::SmEditWindow( SmCmdBoxWindow &rMyCmdBoxWin ) :
SetBackground( GetSettings().GetStyleSettings().GetWindowColor() );
aModifyIdle.SetIdleHdl(LINK(this, SmEditWindow, ModifyTimerHdl));
- aModifyIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
+ aModifyIdle.SetPriority(SchedulerPriority::LOWEST);
if (!IsInlineEditEnabled())
{
aCursorMoveIdle.SetIdleHdl(LINK(this, SmEditWindow, CursorMoveTimerHdl));
- aCursorMoveIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
+ aCursorMoveIdle.SetPriority(SchedulerPriority::LOWEST);
}
// if not called explicitly the this edit window within the
@@ -244,14 +244,14 @@ void SmEditWindow::DataChanged( const DataChangedEvent& )
Resize();
}
-IMPL_LINK( SmEditWindow, ModifyTimerHdl, Timer *, EMPTYARG /*pTimer*/ )
+IMPL_LINK( SmEditWindow, ModifyTimerHdl, Idle *, EMPTYARG /*pTimer*/ )
{
UpdateStatus();
aModifyIdle.Stop();
return 0;
}
-IMPL_LINK(SmEditWindow, CursorMoveTimerHdl, Timer *, EMPTYARG /*pTimer*/)
+IMPL_LINK(SmEditWindow, CursorMoveTimerHdl, Idle *, EMPTYARG /*pTimer*/)
// every once in a while check cursor position (selection) of edit
// window and if it has changed (try to) set the formula-cursor
// according to that.
@@ -731,7 +731,7 @@ void SmEditWindow::LoseFocus()
bool SmEditWindow::IsAllSelected() const
{
bool bRes = false;
- EditEngine *pEditEngine = (const_cast<SmEditWindow *>(this))->GetEditEngine();
+ EditEngine *pEditEngine = ((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 = (const_cast<SmEditWindow *>(this))->GetEditEngine();
+ EditEngine *pEditEngine = ((SmEditWindow *) this)->GetEditEngine();
bool bEmpty = ( pEditEngine && pEditEngine->GetTextLen() == 0 );
return bEmpty;
}