diff options
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/XMLFontAutoStylePool.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/XMLFontStylesContext.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/XMLFontAutoStylePool.cxx b/xmloff/source/style/XMLFontAutoStylePool.cxx index e0d11241be4d..407f1ae8ecc6 100644 --- a/xmloff/source/style/XMLFontAutoStylePool.cxx +++ b/xmloff/source/style/XMLFontAutoStylePool.cxx @@ -605,7 +605,7 @@ OUString XMLFontAutoStylePool::embedFontFile(OUString const & fileUrl, OUString uno::Reference< embed::XStorage > storage; storage.set( GetExport().GetTargetStorage()->openStorageElement( "Fonts", - ::embed::ElementModes::WRITE ), uno::UNO_QUERY_THROW ); + ::embed::ElementModes::WRITE ), uno::UNO_SET_THROW ); OUString name = getFreeFontName(storage, rFamilyName); diff --git a/xmloff/source/style/XMLFontStylesContext.cxx b/xmloff/source/style/XMLFontStylesContext.cxx index b56460353b0b..ba57fea0da03 100644 --- a/xmloff/source/style/XMLFontStylesContext.cxx +++ b/xmloff/source/style/XMLFontStylesContext.cxx @@ -317,10 +317,10 @@ void XMLFontStyleContextFontFaceUri::handleEmbeddedFont( const OUString& url, bo if( GetImport().IsPackageURL( url )) { uno::Reference< embed::XStorage > storage; - storage.set( GetImport().GetSourceStorage(), UNO_QUERY_THROW ); + storage.set( GetImport().GetSourceStorage(), UNO_SET_THROW ); if( url.indexOf( '/' ) > -1 ) // TODO what if more levels? storage.set( storage->openStorageElement( url.copy( 0, url.indexOf( '/' )), - ::embed::ElementModes::READ ), uno::UNO_QUERY_THROW ); + ::embed::ElementModes::READ ), uno::UNO_SET_THROW ); uno::Reference< io::XInputStream > inputStream; inputStream.set( storage->openStreamElement( url.copy( url.indexOf( '/' ) + 1 ), ::embed::ElementModes::READ ), UNO_QUERY_THROW ); |