diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-07-26 09:36:53 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-07-26 09:38:10 +0200 |
commit | 513212eb71ffca09e47025ac82e0203d3df22d4a (patch) | |
tree | 321cd8e99f92416bd74a9d9fb4b42160dfe2e3da /svx/source/unodraw | |
parent | 9f8a350c2131f1289f9edb652c8e86e7b806040f (diff) |
fdo#46037: no more comphelper/configurationhelper.hxx in svx
+ sal_Bool -> bool conversion
Change-Id: Id8dc56e61984af599dcd53bb2cc9665db5fa0a1e
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/recoveryui.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/svx/source/unodraw/recoveryui.cxx b/svx/source/unodraw/recoveryui.cxx index 652511b2c113..e6d4c3346ad5 100644 --- a/svx/source/unodraw/recoveryui.cxx +++ b/svx/source/unodraw/recoveryui.cxx @@ -26,11 +26,11 @@ #include <osl/file.hxx> #include <rtl/bootstrap.hxx> #include <comphelper/processfactory.hxx> -#include <comphelper/configurationhelper.hxx> #include <vcl/svapp.hxx> #include <boost/scoped_ptr.hpp> +#include <officecfg/Office/Recovery.hxx> #define IMPLEMENTATIONNAME_RECOVERYUI OUString("com.sun.star.comp.svx.RecoveryUI") @@ -276,18 +276,7 @@ void RecoveryUI::impl_doRecovery() { bool bRecoveryOnly( false ); - OUString CFG_PACKAGE_RECOVERY( "org.openoffice.Office.Recovery/"); - OUString CFG_PATH_CRASHREPORTER( "CrashReporter" ); - OUString CFG_ENTRY_ENABLED( "Enabled" ); - - sal_Bool bCrashRepEnabled(sal_False); - css::uno::Any aVal = ::comphelper::ConfigurationHelper::readDirectKey( - m_xContext, - CFG_PACKAGE_RECOVERY, - CFG_PATH_CRASHREPORTER, - CFG_ENTRY_ENABLED, - ::comphelper::ConfigurationHelper::E_READONLY); - aVal >>= bCrashRepEnabled; + bool bCrashRepEnabled(officecfg::Office::Recovery::CrashReporter::Enabled::get()); bRecoveryOnly = !bCrashRepEnabled; // create core service, which implements the real "emergency save" algorithm. |