From f0a8b5b81d6be08de6e0d504616a1f09830f7c38 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 23 Dec 2023 16:07:24 +0000 Subject: move IsFuzzing to comphelper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and try something a bit more generic Change-Id: I1d8256576cd02f0a589df350ba7b53059dd586a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161250 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- framework/source/fwe/helper/titlehelper.cxx | 3 ++- framework/source/jobs/jobexecutor.cxx | 4 ++-- framework/source/services/desktop.cxx | 4 ++-- framework/source/services/modulemanager.cxx | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) (limited to 'framework') diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx index 5ab03ab10e8f..004cd59383af 100644 --- a/framework/source/fwe/helper/titlehelper.cxx +++ b/framework/source/fwe/helper/titlehelper.cxx @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -490,7 +491,7 @@ void TitleHelper::impl_updateTitleForFrame (const css::uno::Reference< css::fram impl_appendComponentTitle (sTitle, xComponent); #ifndef MACOSX - if (!utl::ConfigManager::IsFuzzing()) + if (!comphelper::IsFuzzing()) { // fdo#70376: We want the window title to contain just the // document name (from the above "component title"). diff --git a/framework/source/jobs/jobexecutor.cxx b/framework/source/jobs/jobexecutor.cxx index 61806538585b..f1c450bd6530 100644 --- a/framework/source/jobs/jobexecutor.cxx +++ b/framework/source/jobs/jobexecutor.cxx @@ -33,7 +33,7 @@ #include #include -#include +#include #include #include #include @@ -127,7 +127,7 @@ JobExecutor::JobExecutor( /*IN*/ const css::uno::Reference< css::uno::XComponent void JobExecutor::initListeners() { - if (utl::ConfigManager::IsFuzzing()) + if (comphelper::IsFuzzing()) return; // read the list of all currently registered events inside configuration. diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index 12a45fa93117..6560af7f1eb3 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -58,7 +58,7 @@ #include #include #include -#include +#include namespace framework{ @@ -673,7 +673,7 @@ css::uno::Reference< css::frame::XDispatch > SAL_CALL Desktop::queryDispatch( co if ( aURL.Protocol.equalsIgnoreAsciiCase(".uno:") ) aCommand = aURL.Path; - if (!m_xCommandOptions && !utl::ConfigManager::IsFuzzing()) + if (!m_xCommandOptions && !comphelper::IsFuzzing()) m_xCommandOptions.reset(new SvtCommandOptions); // Make std::unordered_map lookup if the current URL is in the disabled list diff --git a/framework/source/services/modulemanager.cxx b/framework/source/services/modulemanager.cxx index ce48cfd44123..f2e5758b90e1 100644 --- a/framework/source/services/modulemanager.cxx +++ b/framework/source/services/modulemanager.cxx @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include namespace { @@ -128,7 +128,7 @@ private: ModuleManager::ModuleManager(css::uno::Reference< css::uno::XComponentContext > xContext) : m_xContext(std::move(xContext)) { - if (!utl::ConfigManager::IsFuzzing()) + if (!comphelper::IsFuzzing()) { m_xCFG.set( comphelper::ConfigurationHelper::openConfig( m_xContext, "/org.openoffice.Setup/Office/Factories", -- cgit