summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-15 13:11:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-16 08:55:07 +0200
commit7508c1d1e701dba8cb67414be59193d9672b66ab (patch)
tree5f37eecd6486a223f26b882ca8697fb9afecb9cc /forms
parentcf4059d59752de6e9a6eca59b388beef27bcd7e6 (diff)
loplugin:logexceptionnicely in filter..framework
Change-Id: I8cf70ee278c641767e3fcfcfd151d99d791b3468 Reviewed-on: https://gerrit.libreoffice.org/74098 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/Edit.cxx6
-rw-r--r--forms/source/xforms/submission/replace.cxx5
2 files changed, 6 insertions, 5 deletions
diff --git a/forms/source/component/Edit.cxx b/forms/source/component/Edit.cxx
index 5eacc041a2ba..c5f82e7fc30a 100644
--- a/forms/source/component/Edit.cxx
+++ b/forms/source/component/Edit.cxx
@@ -436,11 +436,11 @@ namespace
{
_rxDest->setPropertyValue( sourceprop.Name, _rxSource->getPropertyValue( sourceprop.Name ) );
}
- catch(const IllegalArgumentException& e)
+ catch(const IllegalArgumentException&)
{
- SAL_WARN( "forms.component", "could not transfer the property named '"
+ TOOLS_WARN_EXCEPTION( "forms.component", "could not transfer the property named '"
<< sourceprop.Name
- << "'. " << e );
+ << "'" );
}
}
}
diff --git a/forms/source/xforms/submission/replace.cxx b/forms/source/xforms/submission/replace.cxx
index 4d3cb04888a8..aa9115ef60c7 100644
--- a/forms/source/xforms/submission/replace.cxx
+++ b/forms/source/xforms/submission/replace.cxx
@@ -25,6 +25,7 @@
#include <rtl/ustring.hxx>
#include <rtl/string.hxx>
#include <sal/log.hxx>
+#include <tools/diagnose_ex.h>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/uno/Reference.hxx>
@@ -101,8 +102,8 @@ CSubmission::SubmissionResult CSubmission::replace(const OUString& aReplace, con
// do nothing \o/
return CSubmission::SUCCESS;
}
- } catch (const Exception& e) {
- SAL_WARN( "forms.xforms", "Exception during replace: " << e);
+ } catch (const Exception&) {
+ TOOLS_WARN_EXCEPTION( "forms.xforms", "Exception during replace");
}
return CSubmission::UNKNOWN_ERROR;
}