From 6b7354ae66db40246a09e00aa876443057655a43 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 10 Jul 2015 11:04:50 +0100 Subject: for testing allow disabling configmgr for time critical paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I08021f18d53e1748927f8847649994f95252bbc2 Reviewed-on: https://gerrit.libreoffice.org/17844 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/unotools/configmgr.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/unotools') diff --git a/include/unotools/configmgr.hxx b/include/unotools/configmgr.hxx index 14a5abf34575..7c174f6cd46c 100644 --- a/include/unotools/configmgr.hxx +++ b/include/unotools/configmgr.hxx @@ -73,6 +73,12 @@ public: SAL_DLLPRIVATE void registerConfigItem(utl::ConfigItem * item); + // Avoid using the config layer and rely on defaults + // which is only useful for special test tool targets + // where start-up speed is of the essence + static bool IsAvoidConfig(); + static void EnableAvoidConfig(); + private: ConfigManager(const ConfigManager&) SAL_DELETED_FUNCTION; -- cgit