summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2016-04-08 15:15:52 +0300
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-20 01:26:02 -0400
commitd4b38602c6ae1f0ae45d3f52e15795bfaabd523c (patch)
tree300d83a1f1ef66c9af83f81f2cbb7951844f731a
parentd77b00ca4d6869ae233e9de2babc67138a2168fb (diff)
tdf#97087 Give comprehensible names to timers
Timers and idles should have programmer comprehensible, unique names Change-Id: I837d1890c687936f8a31278c0102391e6f87212d Reviewed-on: https://gerrit.libreoffice.org/23917 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit c03a11b8f0c93b1c55d9abc9aa224aeb298d1976)
-rw-r--r--forms/source/component/DatabaseForm.cxx2
-rw-r--r--sc/source/ui/dbgui/filtdlg.cxx2
-rw-r--r--sd/source/core/drawdoc2.cxx2
-rw-r--r--svtools/source/graphic/grfmgr.cxx2
-rw-r--r--vcl/source/control/edit.cxx2
-rw-r--r--vcl/source/control/menubtn.cxx2
-rw-r--r--vcl/source/edit/vclmedit.cxx2
-rw-r--r--vcl/source/window/scrwnd.cxx2
8 files changed, 8 insertions, 8 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 3658d3942164..44c087ca1855 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -2560,7 +2560,7 @@ void SAL_CALL ODatabaseForm::disposing(const EventObject& Source) throw( Runtime
void ODatabaseForm::impl_createLoadTimer()
{
OSL_PRECOND( m_pLoadTimer == nullptr, "ODatabaseForm::impl_createLoadTimer: timer already exists!" );
- m_pLoadTimer = new Timer();
+ m_pLoadTimer = new Timer("DatabaseFormLoadTimer");
m_pLoadTimer->SetTimeout(100);
m_pLoadTimer->SetTimeoutHdl(LINK(this,ODatabaseForm,OnTimeout));
}
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx
index 50ee6290df1a..0880ef277a8e 100644
--- a/sc/source/ui/dbgui/filtdlg.cxx
+++ b/sc/source/ui/dbgui/filtdlg.cxx
@@ -106,7 +106,7 @@ ScFilterDlg::ScFilterDlg(SfxBindings* pB, SfxChildWindow* pCW, vcl::Window* pPar
Init( rArgSet );
// Hack: RefInput control
- pTimer = new Timer;
+ pTimer = new Timer("ScFilterTimer");
pTimer->SetTimeout( 50 ); // Wait 50ms
pTimer->SetTimeoutHdl( LINK( this, ScFilterDlg, TimeOutHdl ) );
diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index 1746cdfbf0ed..7de324e4563e 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -662,7 +662,7 @@ void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ )
if( !pRefPage && (meDocType != DOCUMENT_TYPE_DRAW) )
pPage->SetAutoLayout( AUTOLAYOUT_TITLE, true, true );
- mpWorkStartupTimer = new Timer();
+ mpWorkStartupTimer = new Timer("DrawWorkStartupTimer");
mpWorkStartupTimer->SetTimeoutHdl( LINK(this, SdDrawDocument, WorkStartupHdl) );
mpWorkStartupTimer->SetTimeout(2000);
mpWorkStartupTimer->Start();
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index 40b601ea09ce..abd6967cb0a6 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -446,7 +446,7 @@ void GraphicObject::SetSwapStreamHdl(const Link<const GraphicObject*, SvStream*>
{
if( !mpSwapOutTimer )
{
- mpSwapOutTimer = new Timer;
+ mpSwapOutTimer = new Timer("SwapOutTimer");
mpSwapOutTimer->SetTimeoutHdl( LINK( this, GraphicObject, ImplAutoSwapOutHdl ) );
}
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index f2040421c735..5fb666e01122 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2455,7 +2455,7 @@ void Edit::EnableUpdateData( sal_uLong nTimeout )
{
if ( !mpUpdateDataTimer )
{
- mpUpdateDataTimer = new Timer;
+ mpUpdateDataTimer = new Timer("UpdateDataTimer");
mpUpdateDataTimer->SetTimeoutHdl( LINK( this, Edit, ImplUpdateDataHdl ) );
}
diff --git a/vcl/source/control/menubtn.cxx b/vcl/source/control/menubtn.cxx
index 773d439a6572..c144609a5886 100644
--- a/vcl/source/control/menubtn.cxx
+++ b/vcl/source/control/menubtn.cxx
@@ -114,7 +114,7 @@ void MenuButton::MouseButtonDown( const MouseEvent& rMEvt )
{
if ( !mpMenuTimer )
{
- mpMenuTimer = new Timer;
+ mpMenuTimer = new Timer("MenuTimer");
mpMenuTimer->SetTimeoutHdl( LINK( this, MenuButton, ImplMenuTimeoutHdl ) );
}
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index 7244c354fb18..23b218b2f9b5 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -1124,7 +1124,7 @@ void VclMultiLineEdit::EnableUpdateData( sal_uLong nTimeout )
{
if ( !pUpdateDataTimer )
{
- pUpdateDataTimer = new Timer;
+ pUpdateDataTimer = new Timer("MultiLineEditTimer");
pUpdateDataTimer->SetTimeoutHdl( LINK( this, VclMultiLineEdit, ImpUpdateDataHdl ) );
}
pUpdateDataTimer->SetTimeout( nTimeout );
diff --git a/vcl/source/window/scrwnd.cxx b/vcl/source/window/scrwnd.cxx
index b438d1e6c009..18a5cd1911e5 100644
--- a/vcl/source/window/scrwnd.cxx
+++ b/vcl/source/window/scrwnd.cxx
@@ -74,7 +74,7 @@ ImplWheelWindow::ImplWheelWindow( vcl::Window* pParent ) :
ImplSetWheelMode( WHEELMODE_V );
// init timer
- mpTimer = new Timer;
+ mpTimer = new Timer("WheelWindowTimer");
mpTimer->SetTimeoutHdl( LINK( this, ImplWheelWindow, ImplScrollHdl ) );
mpTimer->SetTimeout( mnTimeout );
mpTimer->Start();