From 3b835b8d546ca16d7edcb06eda017e276383ea0f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 10 Sep 2018 18:04:04 +0200 Subject: Use [[nodiscard]] in SAL_WARN_UNUSED_RESULT where available ...which required some lax placements of SAL_WARN_UNUSED_RESULT to be fixed. Also, Clang unfortunately is rather picky about the relative order of SAL_WARN_UNUSED_RESULT expanding to [[nodiscard]] and uses of the DLLPUBLIC macros (expanding to __attribute__(...) resp. __declspec(..) for clang-cl). Change-Id: Iae6ca36bef97f1864873aefdb5f05c7f5e045ad3 Reviewed-on: https://gerrit.libreoffice.org/60274 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- include/svx/svdundo.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/svx/svdundo.hxx') diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index 642b67954073..6d8896916bcd 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -129,7 +129,7 @@ protected: void ImpTakeDescriptionStr(const char* pStrCacheID, OUString& rStr, bool bRepeat = false) const; - static SAL_WARN_UNUSED_RESULT OUString GetDescriptionStringForObject( const SdrObject& _rForObject, const char* pStrCacheID, bool bRepeat = false ); + SAL_WARN_UNUSED_RESULT static OUString GetDescriptionStringForObject( const SdrObject& _rForObject, const char* pStrCacheID, bool bRepeat = false ); // #94278# new method for evtl. PageChange at UNDO/REDO void ImpShowPageOfThisObject(); -- cgit