diff options
Diffstat (limited to 'linguistic/source/gciterator.cxx')
-rw-r--r-- | linguistic/source/gciterator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index f6f6dc2cc157..3e5cb556d66a 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -256,11 +256,11 @@ void GrammarCheckingIterator::TerminateThread() { ::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() ); t = m_thread; - m_thread = 0; + m_thread = nullptr; m_bEnd = true; m_aWakeUpThread.set(); } - if (t != 0) + if (t != nullptr) { osl_joinWithThread(t); osl_destroyThread(t); @@ -658,7 +658,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception) const bool bAutomatic = true; uno::Reference<text::XFlatParagraphIterator> xFPIterator = xIteratorProvider->getFlatParagraphIterator( text::TextMarkupType::PROOFREADING, bAutomatic ); - uno::Reference< text::XFlatParagraph > xPara( xFPIterator.is()? xFPIterator->getFirstPara() : NULL ); + uno::Reference< text::XFlatParagraph > xPara( xFPIterator.is()? xFPIterator->getFirstPara() : nullptr ); uno::Reference< lang::XComponent > xComponent( xDoc, uno::UNO_QUERY ); // ---- THREAD SAFE START ---- @@ -1158,7 +1158,7 @@ void * SAL_CALL GrammarCheckingIterator_getFactory( lang::XMultiServiceFactory *pServiceManager, void * /*pRegistryKey*/ ) { - void * pRet = 0; + void * pRet = nullptr; if ( GrammarCheckingIterator_getImplementationName().equalsAscii( pImplName ) ) { uno::Reference< lang::XSingleServiceFactory > xFactory = |