summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-03 15:53:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-07 11:42:37 +0200
commitf59d9e7ea09482c2e9e5f52a8d0445e4cebc3df5 (patch)
tree32660175a848b4cbb80d7c4f1d2fe04e790fb6e2 /linguistic
parent97db1d17be599c8627110cbb4f57f0cb36da178c (diff)
new loplugin:unusedvariableplus
a particularly aggressive checker, which is why it is off by default Change-Id: Id5a0faa50b3ecc75e01f4aedc6579c5209e585da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91643 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdic.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx
index 4a9bb04909d9..e4d1b4e82dfc 100644
--- a/linguistic/source/convdic.cxx
+++ b/linguistic/source/convdic.cxx
@@ -26,6 +26,7 @@
#include <tools/debug.hxx>
#include <tools/stream.hxx>
#include <tools/urlobj.hxx>
+#include <tools/diagnose_ex.h>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <cppuhelper/supportsservice.hxx>
@@ -84,8 +85,6 @@ static void ReadThroughDic( const OUString &rMainURL, ConvDicXMLImport &rImport
if (!xIn.is())
return;
- SvStreamPtr pStream( utl::UcbStreamHelper::CreateStream( xIn ) );
-
// prepare ParserInputSource
xml::sax::InputSource aParserInput;
aParserInput.aInputStream = xIn;
@@ -97,12 +96,15 @@ static void ReadThroughDic( const OUString &rMainURL, ConvDicXMLImport &rImport
}
catch( xml::sax::SAXParseException& )
{
+ TOOLS_WARN_EXCEPTION("linguistic", "");
}
catch( xml::sax::SAXException& )
{
+ TOOLS_WARN_EXCEPTION("linguistic", "");
}
catch( io::IOException& )
{
+ TOOLS_WARN_EXCEPTION("linguistic", "");
}
}