sc/source/core/data/fillinfo.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 8f0668a0e18f4fa01864ede5fa3f66b36bd4ad85
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Wed Mar 30 02:24:54 2016 +0200

    limit scope of another variable in ScDocument::FillInfo
    
    Change-Id: Ic53bcaa5e33f221a643de4e854990769b5c04a74
    Reviewed-on: https://gerrit.libreoffice.org/23633
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com>

diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index e367088..c3dd480 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));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to