diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-10-12 13:05:05 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-10-12 13:05:05 +0000 |
commit | 9b690bd29fdbae45741f54386e76607d3460fd6b (patch) | |
tree | 45a2e501c41d63fc6c558909a0281465ddf29ed8 /desktop/source/app/configinit.cxx | |
parent | 3d5f5e88bc4bcda3171896a9faaf9464e3344ba8 (diff) |
INTEGRATION: CWS sb59 (1.11.300); FILE MERGED
2006/07/20 07:55:19 sb 1.11.300.1: #i67537# Made code warning-free.
Diffstat (limited to 'desktop/source/app/configinit.cxx')
-rw-r--r-- | desktop/source/app/configinit.cxx | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/desktop/source/app/configinit.cxx b/desktop/source/app/configinit.cxx index 44c73e11f9c0..5829936c8a9c 100644 --- a/desktop/source/app/configinit.cxx +++ b/desktop/source/app/configinit.cxx @@ -4,9 +4,9 @@ * * $RCSfile: configinit.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: obo $ $Date: 2006-09-17 09:35:36 $ + * last change: $Author: obo $ $Date: 2006-10-12 14:05:05 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -139,8 +139,7 @@ ConfigurationProvider createDefaultConfigurationProvider( ) } // ---------------------------------------------------------------------------- /// @attention this method must be called from a catch statement! -static void handleGeneralException(ConfigurationProvider& xProvider, - uno::Exception& aException, +static void handleGeneralException(uno::Exception& aException, const rtl::OUString& aMessage) { aException.Message = aMessage ; @@ -158,31 +157,31 @@ uno::Reference< lang::XMultiServiceFactory > CreateApplicationConfigurationProvi } catch (configuration::InvalidBootstrapFileException & exception) { - handleGeneralException(xProvider, exception, + handleGeneralException(exception, getMsgString( STR_CONFIG_ERR_SETTINGS_INCOMPLETE, "The startup settings for your configuration settings are incomplete. ")); } catch (backend::CannotConnectException & exception) { - handleGeneralException(xProvider, exception, + handleGeneralException(exception, getMsgString( STR_CONFIG_ERR_CANNOT_CONNECT, "A connection to your configuration settings could not be established. ")); } catch (backend::BackendSetupException & exception) { - handleGeneralException(xProvider, exception, + handleGeneralException(exception, getMsgString( STR_CONFIG_ERR_CANNOT_CONNECT, "A connection to your configuration settings could not be established. ")); } catch (configuration::CannotLoadConfigurationException & exception) { - handleGeneralException(xProvider, exception, + handleGeneralException(exception, getMsgString( STR_CONFIG_ERR_CANNOT_CONNECT, "A connection to your configuration settings could not be established. ")); } catch (uno::Exception & exception) { - handleGeneralException(xProvider, exception, + handleGeneralException(exception, getMsgString( STR_CONFIG_ERR_ACCESS_GENERAL, "A general error occurred while accessing your configuration settings.")); } @@ -241,8 +240,7 @@ namespace class ConfigurationErrorHandler::Context : public SimpleCurrentContext { public: - explicit - Context(InteractionHandler const & xHandler) + Context() : SimpleCurrentContext( uno::getCurrentContext() ) { } @@ -285,7 +283,7 @@ void ConfigurationErrorHandler::activate() { if (!m_pContext) { - m_pContext = new Context(m_xHandler); + m_pContext = new Context; m_pContext->acquire(); } m_pContext->install(); |