diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index cefe6805ad44..9d84b09ddcf1 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -225,7 +225,7 @@ extern "C" void lcl_workerfunc (void * gci) { osl_setThreadName("GrammarCheckingIterator"); - ((GrammarCheckingIterator*)gci)->DequeueAndCheck(); + static_cast(gci)->DequeueAndCheck(); } static lang::Locale lcl_GetPrimaryLanguageOfSentence(