summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-03-29 17:40:03 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-06-05 20:39:40 +0200
commit0d56b4665ab296e8f152f1203ac11f5d21ecf36c (patch)
tree17abf0d46b4a0412f08e004902e8129975cd8d1a /splash
parent61611e9d1db881fdeec730671d092a5144e51533 (diff)
Splash::makeDashedPath: Remove i declaration in for
We already have one above and this causes a shadow warning
Diffstat (limited to 'splash')
-rw-r--r--splash/Splash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index 127bc4aa..24bdce7b 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -11,7 +11,7 @@
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
-// Copyright (C) 2005-2018 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2005-2019 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2005 Marco Pesenti Gritti <mpg@redhat.com>
// Copyright (C) 2010-2016 Thomas Freitag <Thomas.Freitag@alfa.de>
// Copyright (C) 2010 Christian Feuersänger <cfeuersaenger@googlemail.com>
@@ -2438,7 +2438,7 @@ SplashPath *Splash::makeDashedPath(SplashPath *path) {
if (dPath->length == 0) {
bool allSame = true;
- for (int i = 0; allSame && i < path->length - 1; ++i) {
+ for (i = 0; allSame && i < path->length - 1; ++i) {
allSame = path->pts[i].x == path->pts[i + 1].x && path->pts[i].y == path->pts[i + 1].y;
}
if (allSame) {