summaryrefslogtreecommitdiff
path: root/vcl/source/window/window.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 09:33:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 10:46:40 +0200
commita2e4b76e29e491bac4f9e6dfd9929dfd49a4b05e (patch)
treeadc41305c2e5dc94631d81f6b027464d1a15358f /vcl/source/window/window.cxx
parent70accc2904edb5c4aa9b5acb7ff2889a77717b75 (diff)
loplugin:logexceptionnicely in vcl
Change-Id: I0ed575a11c84c2e8aabfa1b4204ba6ae27393d5f Reviewed-on: https://gerrit.libreoffice.org/74245 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r--vcl/source/window/window.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 27f027eb3224..5a0b505e2aef 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -70,6 +70,7 @@
#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
#include <unotools/configmgr.hxx>
+#include <tools/diagnose_ex.h>
#include <tools/debug.hxx>
#include <cassert>
@@ -3288,9 +3289,9 @@ Reference< XClipboard > Window::GetClipboard()
= css::datatransfer::clipboard::SystemClipboard::create(
comphelper::getProcessComponentContext());
}
- catch (DeploymentException & e)
+ catch (DeploymentException const &)
{
- SAL_WARN("vcl.window", "ignoring " << e);
+ TOOLS_WARN_EXCEPTION("vcl.window", "ignoring");
}
}
@@ -3329,9 +3330,9 @@ Reference< XClipboard > Window::GetPrimarySelection()
mpWindowImpl->mpFrameData->mxSelection = s_xSelection;
#endif
}
- catch (RuntimeException & e)
+ catch (RuntimeException const &)
{
- SAL_WARN("vcl.window", "ignoring " << e);
+ TOOLS_WARN_EXCEPTION("vcl.window", "ignoring");
}
}