summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index 66ba35f017f7..15a195c52a02 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -115,7 +115,7 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
//Test for existence of the dictionaries
for (NSUInteger i = 0; i < [aLocales count]; i++)
{
- NSString* pLangStr = (NSString*)[aLocales objectAtIndex:i];
+ NSString* pLangStr = static_cast<NSString*>([aLocales objectAtIndex:i]);
if( [[NSSpellChecker sharedSpellChecker] setLanguage:pLangStr ] )
{
postspdict.push_back( pLangStr );
@@ -349,7 +349,7 @@ Reference< XSpellAlternatives >
{
// if needed add: if (suglst[ii] == NULL) continue;
NSString* guess = [guesses objectAtIndex:ii];
- OUString cvtwrd(reinterpret_cast<const sal_Unicode*>([guess cStringUsingEncoding:NSUnicodeStringEncoding]), (sal_Int32)[guess length]);
+ OUString cvtwrd(reinterpret_cast<const sal_Unicode*>([guess cStringUsingEncoding:NSUnicodeStringEncoding]), static_cast<sal_Int32>([guess length]));
pStr[ii] = cvtwrd;
}
}