diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-30 09:55:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-30 09:55:00 +0200 |
commit | d6db18316b5e55bd38ceb7568aa5fb4564ed49a9 (patch) | |
tree | 80d94bbc0442ae5570f6df4e2db234559427cea8 /lingucomponent | |
parent | 5c5a49eda1555db7b7519e9b0398cfd469c9bcb5 (diff) |
loplugin:oncevar
Change-Id: I285296913f469aa624ececefab488ff4c456f05a
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 6 |
1 files changed, 2 insertions, 4 deletions
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]; } |