Tag: cws_src680_dba23b
User: fs      
Date: 2007-06-21 11:48:59+0000
Modified:
   dba/dbaccess/source/core/dataaccess/documentdefinition.cxx

Log:
 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.42&r2=1.42.12.1
Delta lines:  +7 -14
--------------------
--- documentdefinition.cxx      2007-05-10 10:12:45+0000        1.42
+++ documentdefinition.cxx      2007-06-21 11:48:46+0000        1.42.12.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: documentdefinition.cxx,v $
  *
- *  $Revision: 1.42 $
+ *  $Revision: 1.42.12.1 $
  *
- *  last change: $Author: kz $ $Date: 2007/05/10 10:12:45 $
+ *  last change: $Author: fs $ $Date: 2007/06/21 11:48:46 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -443,9 +443,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 {
@@ -471,17 +469,12 @@
                        else if ( aMediaType.equalsAscii( 
"application/vnd.sun.xml.math" ) )
                                sResult = ::rtl::OUString::createFromAscii( 
"com.sun.star.comp.Math.FormulaDocument" );
 
-                       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