[Libreoffice-commits] core.git: lingucomponent/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 10 15:36:45 UTC 2021
lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 3 ---
1 file changed, 3 deletions(-)
New commits:
commit da905b57745a343aa922a4e9fb513b121cd6ad8b
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jun 10 16:02:02 2021 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jun 10 17:35:59 2021 +0200
-Werror,-Wunused-but-set-variable (Clang 13 trunk)
...ever since the code's introduction in
4e386a897cd43aae3664ce68e47dd46b271de780 "INTEGRATION: CWS macosxspellchecker"
Change-Id: I932b7ff4cc8aabf2e70379ed9ebe361881246c46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116997
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index b4a206ada437..c20871b1e127 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -356,8 +356,6 @@ sal_Bool SAL_CALL MacSpellChecker::hasLocale(const Locale& rLocale)
sal_Int16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rLocale )
{
- rtl_TextEncoding aEnc;
-
// initialize a myspell object for each dictionary once
// (note: mutex is held higher up in isValid)
@@ -377,7 +375,6 @@ sal_Int16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const Locale
if (n)
{
- aEnc = 0;
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSString* aNSStr = [[[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(nWord.getStr()) length: nWord.getLength()]autorelease];
NSString* aLang = [[[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(rLocale.Language.getStr()) length: rLocale.Language.getLength()]autorelease];
More information about the Libreoffice-commits
mailing list