Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f4ceba19 authored by Laurent Montel's avatar Laurent Montel 😁

Reduce variables

parent 03626f8a
......@@ -234,13 +234,13 @@ static const int num_detectors = sizeof(magic_detector) / sizeof(magic_detector[
static QStringList headerToAddress(const QString &header)
{
QStringList addresses;
int start = 0;
QStringList addresses;
if (header.isEmpty()) {
return addresses;
}
int start = 0;
while ((start = header.indexOf(QLatin1Char('<'), start)) != -1) {
int end = 0;
if ((end = header.indexOf(QLatin1Char('>'), ++start)) == -1) {
......
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