summaryrefslogtreecommitdiff
path: root/framework/source/uiconfiguration/imagemanager.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-11-26 19:36:59 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-11-26 19:36:59 +0000
commit500fe3352465398463480cc81f35ff4401ae351d (patch)
treea87462e719d00419719e5fcea1e488f01b0936b0 /framework/source/uiconfiguration/imagemanager.cxx
parent0370acb67cb48724b94fdd8c74a69f8bd7271e93 (diff)
INTEGRATION: CWS storagechange01 (1.3.84); FILE MERGED
2004/11/01 11:49:34 mav 1.3.84.1: #i26882# use filesystem storage implementation
Diffstat (limited to 'framework/source/uiconfiguration/imagemanager.cxx')
-rw-r--r--framework/source/uiconfiguration/imagemanager.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/framework/source/uiconfiguration/imagemanager.cxx b/framework/source/uiconfiguration/imagemanager.cxx
index 72449629c9a3..8da17a9e9521 100644
--- a/framework/source/uiconfiguration/imagemanager.cxx
+++ b/framework/source/uiconfiguration/imagemanager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: imagemanager.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: obo $ $Date: 2004-07-07 11:27:43 $
+ * last change: $Author: hr $ $Date: 2004-11-26 20:36:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -442,7 +442,8 @@ sal_Bool ImageManager::implts_storeUserImages(
// Commit user bitmaps storage
xTransaction = uno::Reference< XTransactedObject >( xUserBitmapsStorage, UNO_QUERY );
- xTransaction->commit();
+ if ( xTransaction.is() )
+ xTransaction->commit();
}
xOutputStream = xStream->getOutputStream();
@@ -451,7 +452,8 @@ sal_Bool ImageManager::implts_storeUserImages(
// Commit user image storage
xTransaction = uno::Reference< XTransactedObject >( xUserImageStorage, UNO_QUERY );
- xTransaction->commit();
+ if ( xTransaction.is() )
+ xTransaction->commit();
}
return sal_True;
@@ -1108,7 +1110,8 @@ throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException
m_xUserConfigStorage.is())
{
uno::Reference< XTransactedObject > xUserConfigStorageCommit( m_xUserConfigStorage, UNO_QUERY );
- xUserConfigStorageCommit->commit();
+ if ( xUserConfigStorageCommit.is() )
+ xUserConfigStorageCommit->commit();
}
m_bModified = sal_False;
@@ -1140,7 +1143,8 @@ throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException
}
uno::Reference< XTransactedObject > xTransaction( Storage, UNO_QUERY );
- xTransaction->commit();
+ if ( xTransaction.is() )
+ xTransaction->commit();
}
}
}