summaryrefslogtreecommitdiff
path: root/package/source/zipapi
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-15 13:13:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-15 19:58:07 +0200
commit48f62672abd1c594c2c4132c36ae80ffe346ae8b (patch)
treeac6e92c6d886f7575cde0a52c0c3c9dde673cccb /package/source/zipapi
parent8d234284d0ec0393e8d9d5057f68f48f33bc8d9d (diff)
loplugin:logexceptionnicely in package..reportdesign
Change-Id: Ib5438d346fa95299848aaf2144e54f5551c0a906 Reviewed-on: https://gerrit.libreoffice.org/74100 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package/source/zipapi')
-rw-r--r--package/source/zipapi/XUnbufferedStream.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/source/zipapi/XUnbufferedStream.cxx b/package/source/zipapi/XUnbufferedStream.cxx
index 82b6981f4378..e5a965e26951 100644
--- a/package/source/zipapi/XUnbufferedStream.cxx
+++ b/package/source/zipapi/XUnbufferedStream.cxx
@@ -32,6 +32,7 @@
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
#include <sal/log.hxx>
+#include <tools/diagnose_ex.h>
#include <unotools/configmgr.hxx>
@@ -141,10 +142,10 @@ XUnbufferedStream::XUnbufferedStream(
try {
if ( mxZipSeek.is() )
mnZipSize = mxZipSeek->getLength();
- } catch( Exception& e )
+ } catch( const Exception& )
{
// in case of problem the size will stay set to 0
- SAL_WARN("package", "ignoring " << e);
+ TOOLS_WARN_EXCEPTION("package", "ignoring");
}
mnZipEnd = mnZipCurrent + mnZipSize;