From 3d586d61d6a2b314783203d92fb0c1b62ea0e95e Mon Sep 17 00:00:00 2001 From: László Németh Date: Sat, 28 Feb 2015 01:40:13 +0100 Subject: tdf#89436 ScHorizontalAttrIterator cleanup + optimization (removing cycle on cells with default attributes) Change-Id: I4441fab13cb8ba6251d8524db4045e22514436fa --- sc/inc/dociter.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sc/inc/dociter.hxx') diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx index 65023b0434dd..838c100ce643 100644 --- a/sc/inc/dociter.hxx +++ b/sc/inc/dociter.hxx @@ -487,7 +487,7 @@ private: SCROW nEndRow; SCROW* pNextEnd; - SCCOL* pPrevColEnd; + SCCOL* pHorizEnd; SCSIZE* pIndices; const ScPatternAttr** ppPatterns; SCCOL nCol; @@ -496,6 +496,9 @@ private: bool bRepeatedRow; SCROW nMinNextEnd; + void InitForNextRow(bool bInitialization); + bool InitForNextAttr(); + public: ScHorizontalAttrIterator( ScDocument* pDocument, SCTAB nTable, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); -- cgit