summaryrefslogtreecommitdiffstats
path: root/lingucomponent
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-06-10 16:02:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-06-10 17:35:59 +0200
commitda905b57745a343aa922a4e9fb513b121cd6ad8b (patch)
treee70a3bebb1f7b89b06efc62a413ee9b2f286e25a /lingucomponent
parent-Werror,-Wunused-but-set-variable (Clang 13 trunk) (diff)
downloadcore-da905b57745a343aa922a4e9fb513b121cd6ad8b.tar.gz
core-da905b57745a343aa922a4e9fb513b121cd6ad8b.zip
-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@redhat.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm3
1 files changed, 0 insertions, 3 deletions
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];