User: rt      
Date: 2007-07-24 12:05:18+0000
Modified:
   dba/dbaccess/source/core/dataaccess/documentdefinition.cxx

Log:
 INTEGRATION: CWS dba23b (1.42.12); FILE MERGED
 2007/07/11 11:53:04 fs 1.42.12.2: RESYNC: (1.42-1.43); FILE MERGED
 2007/06/21 11:48:46 fs 1.42.12.1: some DBG_UNHANDLED_EXCEPTION

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: documentdefinition.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentdefinition.cxx?r1=1.43&r2=1.44
Delta lines:  +4 -11
--------------------
--- documentdefinition.cxx      2007-07-06 07:54:16+0000        1.43
+++ documentdefinition.cxx      2007-07-24 12:05:15+0000        1.44
@@ -455,9 +455,7 @@
                {
                        // the object must be based on storage
 
-                       Reference< XPropertySet > xPropSet( 
xStorage->openStorageElement( sEntName, ElementModes::READ ), UNO_QUERY );
-                       if ( !xPropSet.is() )
-                               throw RuntimeException();
+                       Reference< XPropertySet > xPropSet( 
xStorage->openStorageElement( sEntName, ElementModes::READ ), UNO_QUERY_THROW );
 
                        ::rtl::OUString aMediaType;
                        try {
@@ -498,17 +496,12 @@
                        }
             }
 
-                       try
-                       {
-                               ::comphelper::disposeComponent(xPropSet);
-                       }
-                       catch ( Exception& )
-                       {
-                       }
+                       ::comphelper::disposeComponent( xPropSet );
                }
        }
        catch ( Exception& )
        {
+        DBG_UNHANDLED_EXCEPTION();
        }
        return sResult;
 }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to