diff options
Diffstat (limited to 'framework/source/xml/imagesconfiguration.cxx')
-rw-r--r-- | framework/source/xml/imagesconfiguration.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/framework/source/xml/imagesconfiguration.cxx b/framework/source/xml/imagesconfiguration.cxx index e13b7adc79c2..c8beaf3e3519 100644 --- a/framework/source/xml/imagesconfiguration.cxx +++ b/framework/source/xml/imagesconfiguration.cxx @@ -40,7 +40,7 @@ using namespace ::com::sun::star::io; namespace framework { -sal_Bool ImagesConfiguration::LoadImages( +bool ImagesConfiguration::LoadImages( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& rInputStream, ImageListsDescriptor& rItems ) @@ -62,23 +62,23 @@ sal_Bool ImagesConfiguration::LoadImages( try { xParser->parseStream( aInputSource ); - return sal_True; + return true; } catch ( const RuntimeException& ) { - return sal_False; + return false; } catch( const SAXException& ) { - return sal_False; + return false; } catch( const ::com::sun::star::io::IOException& ) { - return sal_False; + return false; } } -sal_Bool ImagesConfiguration::StoreImages( +bool ImagesConfiguration::StoreImages( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& rOutputStream, const ImageListsDescriptor& rItems ) @@ -90,19 +90,19 @@ sal_Bool ImagesConfiguration::StoreImages( { OWriteImagesDocumentHandler aWriteImagesDocumentHandler( rItems, xWriter ); aWriteImagesDocumentHandler.WriteImagesDocument(); - return sal_True; + return true; } catch ( const RuntimeException& ) { - return sal_False; + return false; } catch ( const SAXException& ) { - return sal_False; + return false; } catch ( const ::com::sun::star::io::IOException& ) { - return sal_False; + return false; } } |