[Libreoffice-commits] core.git: lingucomponent/source

Stephan Bergmann sbergman at redhat.com
Fri Jun 30 07:55:31 UTC 2017


 lingucomponent/source/spellcheck/macosxspell/macspellimp.mm |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit d6db18316b5e55bd38ceb7568aa5fb4564ed49a9
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jun 30 09:55:00 2017 +0200

    loplugin:oncevar
    
    Change-Id: I285296913f469aa624ececefab488ff4c456f05a

diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index 4d817e7c517e..033b87555cf8 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -236,8 +236,7 @@ sal_Int16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const Locale
         if(rLocale.Country.getLength()>0)
         {
             NSString* aCountry = [[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(rLocale.Country.getStr()) length: rLocale.Country.getLength()];
-            NSString* aTag = @"_";
-            NSString* aTaggedCountry = [aTag stringByAppendingString:aCountry];
+            NSString* aTaggedCountry = [@"_" stringByAppendingString:aCountry];
             [aLang autorelease];
             aLang = [aLang  stringByAppendingString:aTaggedCountry];
         }
@@ -338,8 +337,7 @@ Reference< XSpellAlternatives >
         if(rLocale.Country.getLength()>0)
         {
             NSString* aCountry = [[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(rLocale.Country.getStr()) length: rLocale.Country.getLength() ];
-            NSString* aTag = @"_";
-            NSString* aTaggedCountry = [aTag stringByAppendingString:aCountry];
+            NSString* aTaggedCountry = [@"_" stringByAppendingString:aCountry];
             [aLang autorelease];
             aLang = [aLang  stringByAppendingString:aTaggedCountry];
         }


More information about the Libreoffice-commits mailing list