From d6db18316b5e55bd38ceb7568aa5fb4564ed49a9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 30 Jun 2017 09:55:00 +0200 Subject: loplugin:oncevar Change-Id: I285296913f469aa624ececefab488ff4c456f05a --- lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lingucomponent/source') 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(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(rLocale.Country.getStr()) length: rLocale.Country.getLength() ]; - NSString* aTag = @"_"; - NSString* aTaggedCountry = [aTag stringByAppendingString:aCountry]; + NSString* aTaggedCountry = [@"_" stringByAppendingString:aCountry]; [aLang autorelease]; aLang = [aLang stringByAppendingString:aTaggedCountry]; } -- cgit