include/vcl/mnemonic.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6543ffeaf468d5c5b631c4cce9f5a228d13e757c Author: Stephan Bergmann <[email protected]> AuthorDate: Thu Aug 20 22:55:49 2020 +0200 Commit: Stephan Bergmann <[email protected]> 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 <[email protected]> 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 _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
