From a7402aee62c5ddcf57bf1e7ef6c3ed7d43636650 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 30 Mar 2016 02:24:54 +0200 Subject: limit scope of another variable in ScDocument::FillInfo Change-Id: Ic53bcaa5e33f221a643de4e854990769b5c04a74 Reviewed-on: https://gerrit.libreoffice.org/23633 Tested-by: Jenkins Reviewed-by: Markus Mohrhard (cherry picked from commit 8f0668a0e18f4fa01864ede5fa3f66b36bd4ad85) Reviewed-on: https://gerrit.libreoffice.org/25288 Reviewed-by: Ashod Nakashian Tested-by: Ashod Nakashian --- sc/source/core/data/fillinfo.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx index 92c38bbaca5d..0b7d779c03af 100644 --- a/sc/source/core/data/fillinfo.cxx +++ b/sc/source/core/data/fillinfo.cxx @@ -465,7 +465,6 @@ void ScDocument::FillInfo( ScAttrArray* pThisAttrArr = pThisCol->pAttrArray; // Attribute nArrRow = 0; - const ScPatternAttr* pPattern; SCROW nCurRow=nRow1; // single rows if (nCurRow>0) --nCurRow; // 1 more on top @@ -478,7 +477,7 @@ void ScDocument::FillInfo( do { nThisRow=pThisAttrArr->pData[nIndex].nRow; // End of range - pPattern=pThisAttrArr->pData[nIndex].pPattern; + const ScPatternAttr* pPattern=pThisAttrArr->pData[nIndex].pPattern; const SvxBrushItem* pBackground = static_cast( &pPattern->GetItem(ATTR_BACKGROUND)); -- cgit v1.2.3