From a70b50ce3c2831a58ecbd2d57f485d0610f2ac44 Mon Sep 17 00:00:00 2001 From: Matt Vogt Date: Tue, 5 Nov 2013 10:00:38 +1000 Subject: [PATCH] Do not use shadowing variable name. --- src/seasideimport.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/seasideimport.cpp b/src/seasideimport.cpp index b9ae190..13e64e7 100644 --- a/src/seasideimport.cpp +++ b/src/seasideimport.cpp @@ -338,20 +338,20 @@ QList SeasideImport::buildImportContacts(const QList QContact *previous = 0; QHash::iterator>::const_iterator git = importGuids.find(guid); if (git != importGuids.end()) { - QContact &contact(*(git.value())); - previous = &contact; + QContact &guidContact(*(git.value())); + previous = &guidContact; } else { QHash::iterator>::const_iterator nit = importNames.find(name); if (nit != importNames.end()) { - QContact &contact(*(nit.value())); - previous = &contact; + QContact &nameContact(*(nit.value())); + previous = &nameContact; } else { // Only if name is empty, use displayLabel - probably SIM import if (emptyName) { QHash::iterator>::const_iterator lit = importLabels.find(label); if (lit != importLabels.end()) { - QContact &contact(*(lit.value())); - previous = &contact; + QContact &labelContact(*(lit.value())); + previous = &labelContact; } } }