lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
New commits: commit 8f7e5633b12802cd4a7f06ca27659f0983018786 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Nov 17 10:39:42 2015 +0100 Don't assume sal_Unicode is unsigned short Change-Id: Ia93c541ea21be89578789d58f642109184a18685 diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm index 29b6b74..a73ceba 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm @@ -236,11 +236,11 @@ sal_Int16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const Locale { aEnc = 0; NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; - NSString* aNSStr = [[NSString alloc] initWithCharacters: nWord.getStr() length: nWord.getLength()]; - NSString* aLang = [[NSString alloc] initWithCharacters: rLocale.Language.getStr() length: rLocale.Language.getLength()]; + NSString* aNSStr = [[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(nWord.getStr()) length: nWord.getLength()]; + NSString* aLang = [[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(rLocale.Language.getStr()) length: rLocale.Language.getLength()]; if(rLocale.Country.getLength()>0) { - NSString* aCountry = [[NSString alloc] initWithCharacters: rLocale.Country.getStr() length: rLocale.Country.getLength()]; + NSString* aCountry = [[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(rLocale.Country.getStr()) length: rLocale.Country.getLength()]; NSString* aTag = @"_"; NSString* aTaggedCountry = [aTag stringByAppendingString:aCountry]; [aLang autorelease]; @@ -339,11 +339,11 @@ Reference< XSpellAlternatives > if (n) { NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; - NSString* aNSStr = [[NSString alloc] initWithCharacters: nWord.getStr() length: nWord.getLength()]; - NSString* aLang = [[NSString alloc] initWithCharacters: rLocale.Language.getStr() length: rLocale.Language.getLength() ]; + NSString* aNSStr = [[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(nWord.getStr()) length: nWord.getLength()]; + NSString* aLang = [[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(rLocale.Language.getStr()) length: rLocale.Language.getLength() ]; if(rLocale.Country.getLength()>0) { - NSString* aCountry = [[NSString alloc] initWithCharacters: rLocale.Country.getStr() length: rLocale.Country.getLength() ]; + NSString* aCountry = [[NSString alloc] initWithCharacters: reinterpret_cast<unichar const *>(rLocale.Country.getStr()) length: rLocale.Country.getLength() ]; NSString* aTag = @"_"; NSString* aTaggedCountry = [aTag stringByAppendingString:aCountry]; [aLang autorelease]; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits