diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-21 16:13:45 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-21 16:13:45 +0000 |
commit | c1e9e15feb8c8bc4bd9e22faec4c420303619458 (patch) | |
tree | c6b38777236e3cfe5b69806771d66ff6ea5c47ee /desktop/source | |
parent | 49f51a889cb18066148a962f3148c19b70dc346a (diff) |
INTEGRATION: CWS impress23 (1.5.40); FILE MERGED
2004/12/30 09:31:33 dbo 1.5.40.2: #i38957# using Any templated ctor instead of makeAny(): testing compilers
2004/12/29 14:39:38 dbo 1.5.40.1: #i38957# removed extract_throw<>(), using Any::get<>() now
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/deployment/registry/configuration/dp_configuration.cxx | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx index d7e3d1c9bb5c..64ff5fee1376 100644 --- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx +++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dp_configuration.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2004-11-09 14:11:35 $ + * last change: $Author: kz $ $Date: 2005-01-21 17:13:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -222,9 +222,8 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_( ::ucb::Content ucbContent; if (create_ucb_content( &ucbContent, url, xCmdEnv )) { - OUString title( extract_throw<OUString>( - ucbContent.getPropertyValue( - StrTitle::get() ) ) ); + const OUString title( ucbContent.getPropertyValue( + StrTitle::get() ).get<OUString>() ); if (title.endsWithIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM(".xcu") )) { mediaType = OUSTR("application/" @@ -252,15 +251,15 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_( if (subType.EqualsIgnoreCaseAscii( "vnd.sun.star.configuration-data")) { return new PackageImpl( - this, url, extract_throw<OUString>( - ucbContent.getPropertyValue( StrTitle::get() ) ), + this, url, ucbContent.getPropertyValue( + StrTitle::get() ).get<OUString>(), m_xConfDataTypeInfo, false /* data file */ ); } else if (subType.EqualsIgnoreCaseAscii( "vnd.sun.star.configuration-schema")) { return new PackageImpl( - this, url, extract_throw<OUString>( - ucbContent.getPropertyValue( StrTitle::get() ) ), + this, url, ucbContent.getPropertyValue( + StrTitle::get() ).get<OUString>(), m_xConfSchemaTypeInfo, true /* schema file */ ); } } @@ -557,7 +556,7 @@ void BackendImpl::PackageImpl::processPackage_( makeURL( that->getConfigLayer(), OUSTR("schema") ), xCmdEnv ); ucbSaveLayer.setPropertyValue( - StrTitle::get(), makeAny( OUSTR("schema.bak") ) ); + StrTitle::get(), Any( OUSTR("schema.bak") ) ); try { for ( ; iPos != iEnd; ++iPos ) { @@ -575,12 +574,12 @@ void BackendImpl::PackageImpl::processPackage_( } catch (Exception &) { ucbSaveLayer.setPropertyValue( - StrTitle::get(), makeAny( OUSTR("schema") ) ); + StrTitle::get(), Any( OUSTR("schema") ) ); throw; } that->m_registeredPackages->erase( m_url ); ucbSaveLayer.executeCommand( - OUSTR("delete"), makeAny( true /* delete physically */ ) ); + OUSTR("delete"), Any( true /* delete physically */ ) ); } } else // data @@ -591,7 +590,7 @@ void BackendImpl::PackageImpl::processPackage_( makeURL( that->getConfigLayer(), OUSTR("data") ), xCmdEnv ); ucbSaveLayer.setPropertyValue( - StrTitle::get(), makeAny( OUSTR("data.bak") ) ); + StrTitle::get(), Any( OUSTR("data.bak") ) ); try { for ( ; iPos != iEnd; ++iPos ) { @@ -609,12 +608,12 @@ void BackendImpl::PackageImpl::processPackage_( } catch (Exception &) { ucbSaveLayer.setPropertyValue( - StrTitle::get(), makeAny( OUSTR("data") ) ); + StrTitle::get(), Any( OUSTR("data") ) ); throw; } that->m_registeredPackages->erase( m_url ); ucbSaveLayer.executeCommand( - OUSTR("delete"), makeAny( true /* delete physically */ ) ); + OUSTR("delete"), Any( true /* delete physically */ ) ); } } } |