summaryrefslogtreecommitdiff
path: root/include/unoidl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-10 08:23:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-10 10:21:31 +0200
commit663e09800b5bde6c3bfb8655628b4d08f040fedb (patch)
tree0844f04c30817a000415064fb2937e2ba4f61adb /include/unoidl
parentd934fe802c228d5478cea228b84ba56b6c9b9241 (diff)
Mark some exception classes as SAL_WARN_UNUSED
...so that it would have found 09978dd1fc18ce1ae707bc9e4ea1d2745ff07b61 "clang-tidy bugprone-unused-return-value" Change-Id: I75fb36618bf76110e5c32b9c2a5aeff7461a2a9a Reviewed-on: https://gerrit.libreoffice.org/60235 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/unoidl')
-rw-r--r--include/unoidl/unoidl.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/unoidl/unoidl.hxx b/include/unoidl/unoidl.hxx
index fdd67f61acb0..c808a360b590 100644
--- a/include/unoidl/unoidl.hxx
+++ b/include/unoidl/unoidl.hxx
@@ -24,7 +24,7 @@
namespace unoidl {
-class LO_DLLPUBLIC_UNOIDL NoSuchFileException final {
+class LO_DLLPUBLIC_UNOIDL SAL_WARN_UNUSED NoSuchFileException final {
public:
SAL_DLLPRIVATE NoSuchFileException(rtl::OUString const & uri): uri_(uri) {}
@@ -41,7 +41,7 @@ private:
rtl::OUString uri_;
};
-class LO_DLLPUBLIC_UNOIDL FileFormatException final {
+class LO_DLLPUBLIC_UNOIDL SAL_WARN_UNUSED FileFormatException final {
public:
SAL_DLLPRIVATE FileFormatException(
rtl::OUString const & uri, rtl::OUString const & detail):