From 3770392a0e142fddad40a40cfaf133d62db23a8e Mon Sep 17 00:00:00 2001 From: Pierre-André Jacquod Date: Sun, 2 Oct 2011 13:21:14 +0200 Subject: cppcheck reduce scope of var in editeng/.. impedit3.cxx --- editeng/source/editeng/impedit3.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editeng') diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 58ee78c99a41..b4efe142ed5b 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -2857,7 +2857,6 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta pPDFExtOutDevData->BeginStructureElement( vcl::PDFWriter::Paragraph ); long nParaHeight = pPortion->GetHeight(); - sal_uInt16 nIndex = 0; if ( pPortion->IsVisible() && ( ( !IsVertical() && ( ( aStartPos.Y() + nParaHeight ) > aClipRec.Top() ) ) || ( IsVertical() && ( ( aStartPos.X() - nParaHeight ) < aClipRec.Right() ) ) ) ) @@ -2916,7 +2915,7 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta // -------------------------------------------------- // Over the Portions of the line ... // -------------------------------------------------- - nIndex = pLine->GetStart(); + sal_uInt16 nIndex = pLine->GetStart(); for ( sal_uInt16 y = pLine->GetStartPortion(); y <= pLine->GetEndPortion(); y++ ) { DBG_ASSERT( pPortion->GetTextPortions().Count(), "Line without Textportion in Paint!" ); -- cgit