From 0d56b4665ab296e8f152f1203ac11f5d21ecf36c Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 29 Mar 2019 17:40:03 +0100 Subject: Splash::makeDashedPath: Remove i declaration in for We already have one above and this causes a shadow warning --- splash/Splash.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'splash') 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 +// Copyright (C) 2005-2019 Albert Astals Cid // Copyright (C) 2005 Marco Pesenti Gritti // Copyright (C) 2010-2016 Thomas Freitag // Copyright (C) 2010 Christian Feuersänger @@ -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) { -- cgit v1.2.3