summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source/spellcheck/macosxspell/macspellimp.mm')
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm6
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];
}