From c047ef2bf7b89fd4d6d0c8dfdfcfb4fe636735b2 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 27 Dec 2012 17:12:57 +0100 Subject: Fix Possible inefficient checking for 'm_GlyphsList' emptiness Change-Id: I65c30e751fc01b63a54aa9c31b4b2a792b795a79 --- sdext/source/pdfimport/tree/pdfiprocessor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdext') diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx index 378619ec3252..b166a3749784 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx @@ -210,7 +210,7 @@ sal_Int32 PDFIProcessor::getFontId( const FontAttributes& rAttr ) const // line diagnose block - start void PDFIProcessor::processGlyphLine() { - if( m_GlyphsList.size()<1 ) + if( m_GlyphsList.empty() ) return; double fPreAvarageSpaceValue= 0.0; -- cgit