summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-03-10 20:55:11 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-03-10 22:14:59 +0000
commitb20af8b684463674a0e25cff9db85bbb6acee44b (patch)
tree776bed65b7bb32cdf705cb1c2b10d75657353c46 /sdext
parentbd17307216b07599cbaa7e0111dc784e3af20ed2 (diff)
coverity#1355499 Unchecked return value
Change-Id: I0b9329d00bfcebb6e29db6786715b19a7697d087
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/test/pdf2xml.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/test/pdf2xml.cxx b/sdext/source/pdfimport/test/pdf2xml.cxx
index 19dd03c93917..574a81a4460b 100644
--- a/sdext/source/pdfimport/test/pdf2xml.cxx
+++ b/sdext/source/pdfimport/test/pdf2xml.cxx
@@ -39,6 +39,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if( argc < 4 )
return 1;
+ int nRet = 0;
+
try
{
OUString aBaseURL, aTmpURL, aSrcURL, aDstURL;
@@ -74,7 +76,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
uno::Reference<pdfi::PDFIRawAdaptor> xAdaptor( new pdfi::PDFIRawAdaptor(OUString(), aEnv.getComponentContext()) );
xAdaptor->setTreeVisitorFactory(pTreeFactory);
- xAdaptor->odfConvert( aSrcURL, new OutputWrap(aDstURL), nullptr );
+ nRet = xAdaptor->odfConvert(aSrcURL, new OutputWrap(aDstURL), nullptr) ? 0 : 1;
}
catch (const uno::Exception& e)
{
@@ -87,7 +89,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
return 1;
}
- return 0;
+ return nRet;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */