From d72511eda923c827a6175bec9b8f24c237f82730 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 28 Sep 2021 10:59:43 +0200 Subject: gives names to all the Idles and Tasks enforce it by making the constructor parameter non-default. Change-Id: I321543e4dcf15ea0a43ad8cce91d2f8dc22df6ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122766 Tested-by: Jenkins Reviewed-by: Noel Grandin --- desktop/source/app/app.cxx | 4 ++-- desktop/source/deployment/gui/dp_gui_dialog2.cxx | 4 ++-- desktop/source/deployment/gui/license_dialog.cxx | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'desktop') diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 4943caa3cac9..bd5476af896d 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -425,10 +425,10 @@ Desktop::Desktop() , m_bServicesRegistered(false) , m_aBootstrapError(BE_OK) , m_aBootstrapStatus(BS_OK) + , m_firstRunTimer( "desktop::Desktop m_firstRunTimer" ) { m_firstRunTimer.SetTimeout(3000); // 3 sec. m_firstRunTimer.SetInvokeHandler(LINK(this, Desktop, AsyncInitFirstRun)); - m_firstRunTimer.SetDebugName( "desktop::Desktop m_firstRunTimer" ); } Desktop::~Desktop() @@ -1877,7 +1877,7 @@ namespace { class ExitTimer : public Timer { public: - ExitTimer() + ExitTimer() : Timer("desktop ExitTimer") { SetTimeout(500); Start(); diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx index 28eec755c563..9e700ff46a93 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx @@ -419,6 +419,7 @@ ExtMgrDialog::ExtMgrDialog(weld::Window *pParent, TheExtensionManager *pManager) , m_bDeleteWarning(false) , m_bClosed(false) , m_nProgress(0) + , m_aIdle( "ExtMgrDialog m_aIdle TimeOutHdl" ) , m_pManager(pManager) , m_xExtensionBox(new ExtBoxWithBtns_Impl(m_xBuilder->weld_scrolled_window("scroll", true))) , m_xExtensionBoxWnd(new weld::CustomWeld(*m_xBuilder, "extensions", *m_xExtensionBox)) @@ -477,7 +478,6 @@ ExtMgrDialog::ExtMgrDialog(weld::Window *pParent, TheExtensionManager *pManager) } m_aIdle.SetPriority(TaskPriority::LOWEST); - m_aIdle.SetDebugName( "ExtMgrDialog m_aIdle TimeOutHdl" ); m_aIdle.SetInvokeHandler( LINK( this, ExtMgrDialog, TimeOutHdl ) ); } @@ -969,6 +969,7 @@ UpdateRequiredDialog::UpdateRequiredDialog(weld::Window *pParent, TheExtensionMa , m_bStopProgress(false) , m_bHasLockedEntries(false) , m_nProgress(0) + , m_aIdle( "UpdateRequiredDialog m_aIdle TimeOutHdl" ) , m_pManager(pManager) , m_xExtensionBox(new ExtensionBox_Impl(m_xBuilder->weld_scrolled_window("scroll", true))) , m_xExtensionBoxWnd(new weld::CustomWeld(*m_xBuilder, "extensions", *m_xExtensionBox)) @@ -995,7 +996,6 @@ UpdateRequiredDialog::UpdateRequiredDialog(weld::Window *pParent, TheExtensionMa m_xCloseBtn->grab_focus(); m_aIdle.SetPriority( TaskPriority::LOWEST ); - m_aIdle.SetDebugName( "UpdateRequiredDialog m_aIdle TimeOutHdl" ); m_aIdle.SetInvokeHandler( LINK( this, UpdateRequiredDialog, TimeOutHdl ) ); } diff --git a/desktop/source/deployment/gui/license_dialog.cxx b/desktop/source/deployment/gui/license_dialog.cxx index 34fa924b8128..23f184a333dc 100644 --- a/desktop/source/deployment/gui/license_dialog.cxx +++ b/desktop/source/deployment/gui/license_dialog.cxx @@ -79,6 +79,8 @@ LicenseDialogImpl::LicenseDialogImpl( const OUString & sLicenseText) : GenericDialogController(pParent, "desktop/ui/licensedialog.ui", "LicenseDialog") , m_bLicenseRead(false) + , m_aResized("desktop LicenseDialogImpl m_aResized") + , m_aRepeat("LicenseDialogImpl m_aRepeat") , m_xFtHead(m_xBuilder->weld_label("head")) , m_xArrow1(m_xBuilder->weld_widget("arrow1")) , m_xArrow2(m_xBuilder->weld_widget("arrow2")) -- cgit