summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-10 09:36:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-10 10:48:41 +0100
commitac4d9437b317def515c5d7493d294f47d4102d93 (patch)
treee99584d1e4034a3c8c253ee221d0e910a37b499a
parentef955b0c5e1264f5ce1262156125002279918b7b (diff)
coverity#706262 Uncaught exception
Change-Id: I4fb1642153a0abe66ee9290e31813eb11623b527
-rw-r--r--chart2/source/model/main/ChartModel_Persistence.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx
index f976a30bbccb..ca3a2df1e2aa 100644
--- a/chart2/source/model/main/ChartModel_Persistence.cxx
+++ b/chart2/source/model/main/ChartModel_Persistence.cxx
@@ -41,6 +41,7 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/io/TempFile.hpp>
#include <com/sun/star/io/XSeekable.hpp>
+#include <com/sun/star/ucb/CommandFailedException.hpp>
#include <ucbhelper/content.hxx>
#include <unotools/ucbstreamhelper.hxx>
@@ -126,7 +127,11 @@ Reference< embed::XStorage > lcl_createStorage(
xStorageFact->createInstanceWithArguments( aStorageArgs ), uno::UNO_QUERY_THROW );
OSL_ENSURE( xStorage.is(), "No Storage" );
}
- catch( const ::com::sun::star::ucb::ContentCreationException & rEx )
+ catch(const css::ucb::ContentCreationException& rEx)
+ {
+ ASSERT_EXCEPTION( rEx );
+ }
+ catch(const css::ucb::CommandFailedException& rEx)
{
ASSERT_EXCEPTION( rEx );
}