Kaydet (Commit) d6db1831 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:oncevar

Change-Id: I285296913f469aa624ececefab488ff4c456f05a
üst 5c5a49ed
......@@ -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];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment