[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Mar 2 16:18:21 PST 2011


 sc/source/ui/docshell/docfunc.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 11ab18f7a10cbd5acc45282f31f881ac4723635a
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Wed Mar 2 19:16:14 2011 -0500

    Actually this will just do....

diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index bd92801..a6389c1 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -553,8 +553,7 @@ static void lcl_collectAllPredOrSuccRanges(
     ScRange* p = aSrcRanges.front();
     ScDetectiveFunc aDetFunc(pDoc, p->aStart.Tab());
     ScRangeList aDestRanges;
-    size_t i = 0;
-    for (size_t n = aSrcRanges.size(); i < n; ++i)
+    for (size_t i = 0, n = aSrcRanges.size(); i < n; ++i)
     {
         p = aSrcRanges[i];
         if (bPred)


More information about the Libreoffice-commits mailing list