include/vcl/mnemonic.hxx | 3 +++ vcl/source/window/mnemonic.cxx | 3 +++ 2 files changed, 6 insertions(+)
New commits: commit 449117499ed4ce621057c7b6470b5be40d626d4d Author: Noel Grandin <[email protected]> AuthorDate: Thu Oct 20 09:16:31 2022 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Thu Oct 20 11:04:28 2022 +0200 workaround VisualStudio2022 compile error only seems to hit with --disable-pch Change-Id: I20533aa8516bd92a2cef295ce8c3b4e9a0ab72c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141546 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/include/vcl/mnemonic.hxx b/include/vcl/mnemonic.hxx index b730311481dd..2a14415033e3 100644 --- a/include/vcl/mnemonic.hxx +++ b/include/vcl/mnemonic.hxx @@ -64,6 +64,9 @@ class VCL_DLLPUBLIC MnemonicGenerator public: MnemonicGenerator(sal_Unicode cMnemonic = MNEMONIC_CHAR); + MnemonicGenerator& operator=(MnemonicGenerator const &); //MSVC2022 workaround + MnemonicGenerator(MnemonicGenerator const&); //MSVC2022 workaround + void RegisterMnemonic( const OUString& rKey ); [[nodiscard]] OUString CreateMnemonic(const OUString& rKey); css::uno::Reference< css::i18n::XCharacterClassification > const & GetCharClass(); diff --git a/vcl/source/window/mnemonic.cxx b/vcl/source/window/mnemonic.cxx index 6e4b155c2af5..e4f4cf8cf7cd 100644 --- a/vcl/source/window/mnemonic.cxx +++ b/vcl/source/window/mnemonic.cxx @@ -37,6 +37,9 @@ MnemonicGenerator::MnemonicGenerator(sal_Unicode cMnemonic) memset( maMnemonics, 1, sizeof( maMnemonics ) ); } +MnemonicGenerator& MnemonicGenerator::operator=(MnemonicGenerator const &) = default; //MSVC2022 workaround +MnemonicGenerator::MnemonicGenerator(MnemonicGenerator const&) = default; //MSVC2022 workaround + sal_uInt16 MnemonicGenerator::ImplGetMnemonicIndex( sal_Unicode c ) { static sal_uInt16 const aImplMnemonicRangeTab[MNEMONIC_RANGES*2] =
