summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-10 11:04:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-19 01:04:00 +0000
commit6b7354ae66db40246a09e00aa876443057655a43 (patch)
treee7eb5d71ecd2a6ec8110945a946549500dae7a8a /include
parent5120b3f30614f6e4988c512577da1d70be8d25b1 (diff)
for testing allow disabling configmgr for time critical paths
Change-Id: I08021f18d53e1748927f8847649994f95252bbc2 Reviewed-on: https://gerrit.libreoffice.org/17844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/unotools/configmgr.hxx6
1 files changed, 6 insertions, 0 deletions
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;