Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not use shadowing variable name.
  • Loading branch information
matthewvogt committed Nov 5, 2013
1 parent 05d4a85 commit a70b50c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/seasideimport.cpp
Expand Up @@ -338,20 +338,20 @@ QList<QContact> SeasideImport::buildImportContacts(const QList<QVersitDocument>
QContact *previous = 0;
QHash<QString, QList<QContact>::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<QString, QList<QContact>::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<QString, QList<QContact>::iterator>::const_iterator lit = importLabels.find(label);
if (lit != importLabels.end()) {
QContact &contact(*(lit.value()));
previous = &contact;
QContact &labelContact(*(lit.value()));
previous = &labelContact;
}
}
}
Expand Down

0 comments on commit a70b50c

Please sign in to comment.