summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-30 02:24:54 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-30 03:45:48 +0000
commit8f0668a0e18f4fa01864ede5fa3f66b36bd4ad85 (patch)
treea1fca2c4279a55f4a059387e839c60207cfa35e8 /sc
parent36eec4d179898302578c428564f1b60406c0716c (diff)
limit scope of another variable in ScDocument::FillInfo
Change-Id: Ic53bcaa5e33f221a643de4e854990769b5c04a74 Reviewed-on: https://gerrit.libreoffice.org/23633 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/fillinfo.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index e367088879e1..c3dd4800a911 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<const SvxBrushItem*>(
&pPattern->GetItem(ATTR_BACKGROUND));