Kaydet (Commit) 705b6b61 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#983989 Uncaught exception

Change-Id: I7508ee67a10b43686600b41dd58c1a8a5aa90c51
üst ffc3b11d
......@@ -1853,6 +1853,8 @@ namespace cmis
}
uno::Sequence< uno::Type > SAL_CALL Content::getTypes() throw( uno::RuntimeException, std::exception )
{
try
{
if ( isFolder( uno::Reference< ucb::XCommandEnvironment >() ) )
{
......@@ -1870,8 +1872,19 @@ namespace cmis
CPPU_TYPE_REF( ucb::XContentCreator ) );
return aFolderCollection.getTypes();
}
else
}
catch (const uno::RuntimeException&)
{
throw;
}
catch (const uno::Exception& e)
{
uno::Any a(cppu::getCaughtException());
throw lang::WrappedTargetRuntimeException(
"wrapped Exception " + e.Message,
uno::Reference<uno::XInterface>(), a);
}
static cppu::OTypeCollection aFileCollection
(CPPU_TYPE_REF( lang::XTypeProvider ),
CPPU_TYPE_REF( lang::XServiceInfo ),
......@@ -1886,8 +1899,6 @@ namespace cmis
return aFileCollection.getTypes();
}
}
uno::Sequence< ucb::ContentInfo > Content::queryCreatableContentsInfo(
const uno::Reference< ucb::XCommandEnvironment >& xEnv)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment