summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-16 20:38:11 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-16 20:40:36 +0000
commit2fc7e56a6ce702645f9147a4ea2ec6fb85398380 (patch)
tree9a9b5e2140e7f846508ccf55effa32fd8793eb81 /desktop
parentefab685286432e36821d60264f978d98407b800c (diff)
push/pop deprecated
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/registry/configuration/dp_configuration.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
index 83ecba912513..f9d635a201de 100644
--- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx
+++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
@@ -226,15 +226,22 @@ BackendImpl::BackendImpl(
deleteUnusedFolders(OUString(), folders);
configmgrini_verify_init( xCmdEnv );
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
::std::auto_ptr<PersistentMap> pMap;
+ SAL_WNODEPRECATED_DECLARATIONS_POP
rtl::OUString aCompatURL( makeURL( getCachePath(), OUSTR("registered_packages.db") ) );
// Don't create it if it doesn't exist already
if ( ::utl::UCBContentHelper::Exists( expandUnoRcUrl( aCompatURL ) ) )
{
- try {
+ try
+ {
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH
pMap = ::std::auto_ptr<PersistentMap>( new PersistentMap( aCompatURL ) );
- } catch (Exception &e) { // const uno::RunTimeException &e) {
+ SAL_WNODEPRECATED_DECLARATIONS_POP
+ }
+ catch (const Exception &e)
+ {
rtl::OStringBuffer aStr( "Exception loading legacy package database: '" );
aStr.append( rtl::OUStringToOString( e.Message, osl_getThreadTextEncoding() ) );
aStr.append( "' - ignoring file, please remove it.\n" );