From a2e4b76e29e491bac4f9e6dfd9929dfd49a4b05e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Jun 2019 09:33:28 +0200 Subject: loplugin:logexceptionnicely in vcl Change-Id: I0ed575a11c84c2e8aabfa1b4204ba6ae27393d5f Reviewed-on: https://gerrit.libreoffice.org/74245 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/unx/gtk/gtksalframe.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vcl/unx/gtk') diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx index 75526e55a59b..425ad0562d82 100644 --- a/vcl/unx/gtk/gtksalframe.cxx +++ b/vcl/unx/gtk/gtksalframe.cxx @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -3509,9 +3510,9 @@ static uno::Reference lcl_GetxText(vcl:: if (xAccessible.is()) xText = FindFocusedEditableText(xAccessible->getAccessibleContext()); } - catch(const uno::Exception& e) + catch(const uno::Exception&) { - SAL_WARN( "vcl.gtk", "Exception in getting input method surrounding text: " << e); + TOOLS_WARN_EXCEPTION( "vcl.gtk", "Exception in getting input method surrounding text"); } return xText; } -- cgit v1.2.3