target cppcheck index incrementing revert
Change-Id: I890dfe9fbd7b5a850daaa0d2b4d5040a5ddbefd7
This commit is contained in:
@@ -296,7 +296,7 @@ public:
|
|||||||
rVector.resize( m_nLevel );
|
rVector.resize( m_nLevel );
|
||||||
|
|
||||||
vector< uno::Any >::iterator aIt( rVector.begin() );
|
vector< uno::Any >::iterator aIt( rVector.begin() );
|
||||||
for( sal_Int32 nN=0; aIt<rVector.end(); ++aIt, ++nN)
|
for( sal_Int32 nN=0; aIt<rVector.end(); aIt++, nN++)
|
||||||
{
|
{
|
||||||
if( nN==m_nLevel )
|
if( nN==m_nLevel )
|
||||||
break;
|
break;
|
||||||
@@ -318,7 +318,7 @@ public:
|
|||||||
void operator() ( vector< uno::Any >& rVector )
|
void operator() ( vector< uno::Any >& rVector )
|
||||||
{
|
{
|
||||||
vector< uno::Any >::iterator aIt( rVector.begin() );
|
vector< uno::Any >::iterator aIt( rVector.begin() );
|
||||||
for( sal_Int32 nN=0; aIt<rVector.end(); ++aIt, ++nN)
|
for( sal_Int32 nN=0; aIt<rVector.end(); aIt++, nN++)
|
||||||
{
|
{
|
||||||
if( nN==m_nLevel )
|
if( nN==m_nLevel )
|
||||||
{
|
{
|
||||||
|
@@ -94,7 +94,7 @@ void PageCollector::CollectNonCustomShowPages( const com::sun::star::uno::Refere
|
|||||||
{
|
{
|
||||||
std::vector< Reference< XDrawPage > > vUsedPageList;
|
std::vector< Reference< XDrawPage > > vUsedPageList;
|
||||||
PageCollector::CollectCustomShowPages( rxModel, rCustomShowName, vUsedPageList );
|
PageCollector::CollectCustomShowPages( rxModel, rCustomShowName, vUsedPageList );
|
||||||
if ( !vUsedPageList.empty() )
|
if ( vUsedPageList.size() )
|
||||||
{
|
{
|
||||||
Reference< XDrawPagesSupplier > xDrawPagesSupplier( rxModel, UNO_QUERY_THROW );
|
Reference< XDrawPagesSupplier > xDrawPagesSupplier( rxModel, UNO_QUERY_THROW );
|
||||||
Reference< XDrawPages > xDrawPages( xDrawPagesSupplier->getDrawPages(), UNO_QUERY_THROW );
|
Reference< XDrawPages > xDrawPages( xDrawPagesSupplier->getDrawPages(), UNO_QUERY_THROW );
|
||||||
|
@@ -219,7 +219,7 @@ sal_Int32 PDFIProcessor::getFontId( const FontAttributes& rAttr ) const
|
|||||||
// line diagnose block - start
|
// line diagnose block - start
|
||||||
void PDFIProcessor::processGlyphLine()
|
void PDFIProcessor::processGlyphLine()
|
||||||
{
|
{
|
||||||
if( m_GlyphsList.empty() )
|
if( m_GlyphsList.size()<1 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
double fPreAvarageSpaceValue= 0.0;
|
double fPreAvarageSpaceValue= 0.0;
|
||||||
@@ -315,21 +315,17 @@ void PDFIProcessor::processGlyphLine()
|
|||||||
ParagraphElement* pPara= NULL ;
|
ParagraphElement* pPara= NULL ;
|
||||||
FrameElement* pFrame= 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 = m_pElFactory->createFrameElement( m_GlyphsList[0].getCurElement(), getGCId( getTransformGlyphContext( m_GlyphsList[0])) );
|
||||||
pFrame->ZOrder = m_nNextZOrder++;
|
pFrame->ZOrder = m_nNextZOrder++;
|
||||||
pPara = m_pElFactory->createParagraphElement( pFrame );
|
pPara = m_pElFactory->createParagraphElement( pFrame );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
processGlyph( 0,
|
processGlyph( 0,
|
||||||
m_GlyphsList[0],
|
m_GlyphsList[0],
|
||||||
pPara,
|
pPara,
|
||||||
pFrame,
|
pFrame,
|
||||||
m_bIsWhiteSpaceInLine );
|
m_bIsWhiteSpaceInLine );
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -2378,7 +2378,7 @@ SwXDocumentIndexes::supportsService(const OUString& rServiceName)
|
|||||||
throw (uno::RuntimeException)
|
throw (uno::RuntimeException)
|
||||||
{
|
{
|
||||||
return ::sw::SupportsServiceImpl(
|
return ::sw::SupportsServiceImpl(
|
||||||
SAL_N_ELEMENTS(g_ServicesDocumentIndexes)
|
SAL_N_ELEMENTS(g_ServicesDocumentIndexes),
|
||||||
g_ServicesDocumentIndexes, rServiceName);
|
g_ServicesDocumentIndexes, rServiceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user