[Libreoffice-commits] core.git: forms/source sc/source sd/source svtools/source vcl/source

Muhammet Kara muhammet.kara at pardus.org.tr
Wed Apr 13 08:06:49 UTC 2016


 forms/source/component/DatabaseForm.cxx |    2 +-
 sc/source/ui/dbgui/filtdlg.cxx          |    2 +-
 sd/source/core/drawdoc2.cxx             |    2 +-
 svtools/source/graphic/grfmgr.cxx       |    2 +-
 vcl/source/control/edit.cxx             |    2 +-
 vcl/source/control/menubtn.cxx          |    2 +-
 vcl/source/edit/vclmedit.cxx            |    2 +-
 vcl/source/window/scrwnd.cxx            |    2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit c03a11b8f0c93b1c55d9abc9aa224aeb298d1976
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date:   Fri Apr 8 15:15:52 2016 +0300

    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 at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 393f0e5..4217403 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -2561,7 +2561,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 ab777fb..b34041a 100644
--- a/sc/source/ui/dbgui/filtdlg.cxx
+++ b/sc/source/ui/dbgui/filtdlg.cxx
@@ -108,7 +108,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 c0a5076..6587a46 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -642,7 +642,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 95182e1..c148e8b 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -456,7 +456,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 231422d..91f6200 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 9863950..4b687ad 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 61d6d43..7f25066 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 e93b81d..2c0bc7f 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();


More information about the Libreoffice-commits mailing list