summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2016-04-08 15:15:52 +0300
committerMichael Meeks <michael.meeks@collabora.com>2016-04-13 08:06:29 +0000
commitc03a11b8f0c93b1c55d9abc9aa224aeb298d1976 (patch)
tree3979f8642aa15534d3568ac1e3f2db2a2191b4a4 /vcl
parent3dcd271f7e62e6d175cb187dbb2bbd099f5ca28e (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>
Diffstat (limited to 'vcl')
-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
4 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 231422dae317..91f620080269 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2426,7 +2426,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 9863950f7b72..4b687ad77aae 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 61d6d43c88bc..7f250666bfaf 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -1125,7 +1125,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 e93b81dfca7c..2c0bc7f586a5 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();