Skip to content

Commit d36e381

Browse files
committed
Fix MSVC compiler warning
reg.: declaration of 'tourId' hides function parameter (C4457)
1 parent 3fbbb9f commit d36e381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/framework/tours/internal/toursconfiguration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ void ToursConfiguration::setLastShownTourIdForEvent(const String& eventCode, con
5454
String newTourId = eventCode + u"/" + tourId;
5555

5656
for (size_t i = 0; i < allLastShownTours.size(); ++i) {
57-
const String& tourId = allLastShownTours[i];
58-
if (tourId.startsWith(eventCode)) {
57+
const String& lastTourId = allLastShownTours[i];
58+
if (lastTourId.startsWith(eventCode)) {
5959
allLastShownTours[i] = newTourId;
6060
changed = true;
6161
}

0 commit comments

Comments
 (0)