diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx index 48e7cb671f80..62de736f16ad 100644 --- a/chart2/source/tools/InternalDataProvider.cxx +++ b/chart2/source/tools/InternalDataProvider.cxx @@ -296,7 +296,7 @@ public: rVector.resize( m_nLevel ); vector< uno::Any >::iterator aIt( rVector.begin() ); - for( sal_Int32 nN=0; aIt& rVector ) { vector< uno::Any >::iterator aIt( rVector.begin() ); - for( sal_Int32 nN=0; aIt > vUsedPageList; PageCollector::CollectCustomShowPages( rxModel, rCustomShowName, vUsedPageList ); - if ( !vUsedPageList.empty() ) + if ( vUsedPageList.size() ) { Reference< XDrawPagesSupplier > xDrawPagesSupplier( rxModel, UNO_QUERY_THROW ); Reference< XDrawPages > xDrawPages( xDrawPagesSupplier->getDrawPages(), UNO_QUERY_THROW ); diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx index 12d2ab49fd19..9d066b942808 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx @@ -219,7 +219,7 @@ sal_Int32 PDFIProcessor::getFontId( const FontAttributes& rAttr ) const // line diagnose block - start void PDFIProcessor::processGlyphLine() { - if( m_GlyphsList.empty() ) + if( m_GlyphsList.size()<1 ) return; double fPreAvarageSpaceValue= 0.0; @@ -315,21 +315,17 @@ void PDFIProcessor::processGlyphLine() ParagraphElement* pPara= NULL ; FrameElement* pFrame= NULL ; - if(!m_GlyphsList.empty()) + if(m_GlyphsList.size()>0) { pFrame = m_pElFactory->createFrameElement( m_GlyphsList[0].getCurElement(), getGCId( getTransformGlyphContext( m_GlyphsList[0])) ); pFrame->ZOrder = m_nNextZOrder++; pPara = m_pElFactory->createParagraphElement( pFrame ); - - processGlyph( 0, m_GlyphsList[0], pPara, pFrame, m_bIsWhiteSpaceInLine ); - - } diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index 302e9fa7ce2a..586c498a0005 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -2378,7 +2378,7 @@ SwXDocumentIndexes::supportsService(const OUString& rServiceName) throw (uno::RuntimeException) { return ::sw::SupportsServiceImpl( - SAL_N_ELEMENTS(g_ServicesDocumentIndexes) + SAL_N_ELEMENTS(g_ServicesDocumentIndexes), g_ServicesDocumentIndexes, rServiceName); }