Commit 329f6954 authored by hjk's avatar hjk

fix krazy warnings

parent 8afd8b86
......@@ -352,7 +352,7 @@ void AddressBook::exportAsVCard()
lastName = nameList.last();
} else {
firstName = name;
lastName = "";
lastName.clear();
}
QString fileName = QFileDialog::getSaveFileName(this,
......@@ -381,9 +381,9 @@ void AddressBook::exportAsVCard()
else
out << "FN:" << firstName << "\n";
address.replace(";", "\\;", Qt::CaseInsensitive);
address.replace("\n", ";", Qt::CaseInsensitive);
address.replace(",", " ", Qt::CaseInsensitive);
address.replace(';', "\\;", Qt::CaseInsensitive);
address.replace('\n', ";", Qt::CaseInsensitive);
address.replace(',', " ", Qt::CaseInsensitive);
out << "ADR;HOME:;" << address << "\n";
out << "END;VCARD" << "\n";
......
......@@ -51,7 +51,7 @@ public:
PushMode
};
PullOrPushDialog(Mode mode, QWidget *parent = 0);
explicit PullOrPushDialog(Mode mode, QWidget *parent = 0);
~PullOrPushDialog();
// Common parameters and options
......
......@@ -332,7 +332,7 @@ bool NameDemanglerPrivate::demangle(const QString &mangledName)
#ifdef DO_TRACE
qDebug("%d", substitutions.size());
foreach (QString s, substitutions)
foreach (const QString &s, substitutions)
qDebug(qPrintable(s));
#endif
return !parseError;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment