diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-30 02:24:54 +0200 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2016-05-22 03:35:12 +0000 |
commit | a7402aee62c5ddcf57bf1e7ef6c3ed7d43636650 (patch) | |
tree | a2ab611b99218b6ad15e45d8d3cf6daad78cc30d | |
parent | 5345c0f7ae6d2cad6814dc112c68ba3e6239fd8f (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>
(cherry picked from commit 8f0668a0e18f4fa01864ede5fa3f66b36bd4ad85)
Reviewed-on: https://gerrit.libreoffice.org/25288
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
-rw-r--r-- | sc/source/core/data/fillinfo.cxx | 3 |
1 files changed, 1 insertions, 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<const SvxBrushItem*>( &pPattern->GetItem(ATTR_BACKGROUND)); |