From 663e09800b5bde6c3bfb8655628b4d08f040fedb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 10 Sep 2018 08:23:54 +0200 Subject: 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 --- include/unoidl/unoidl.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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): -- cgit