[Libreoffice-commits] core.git: include/vcl

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 21 06:30:13 UTC 2020


 include/vcl/mnemonic.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6543ffeaf468d5c5b631c4cce9f5a228d13e757c
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Aug 20 22:55:49 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Aug 21 08:29:31 2020 +0200

    Use [[nodiscard]] directly in LIBO_INTERNAL_ONLY code
    
    Change-Id: I31df55c7869fc4f0d37a4189d4b2f10e0a4f2bc0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101095
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/include/vcl/mnemonic.hxx b/include/vcl/mnemonic.hxx
index 0d62a95eb053..3ee12c20cc33 100644
--- a/include/vcl/mnemonic.hxx
+++ b/include/vcl/mnemonic.hxx
@@ -63,7 +63,7 @@ public:
                         MnemonicGenerator(sal_Unicode cMnemonic = MNEMONIC_CHAR);
 
     void                RegisterMnemonic( const OUString& rKey );
-    SAL_WARN_UNUSED_RESULT OUString CreateMnemonic(const OUString& rKey);
+    [[nodiscard]] OUString CreateMnemonic(const OUString& rKey);
     css::uno::Reference< css::i18n::XCharacterClassification > const & GetCharClass();
 
     // returns a string where all '~'-characters and CJK mnemonics of the form (~A) are completely removed


More information about the Libreoffice-commits mailing list