diff --git a/src/httpconnection.cpp b/src/httpconnection.cpp index 7b889ffb4..486ea845b 100644 --- a/src/httpconnection.cpp +++ b/src/httpconnection.cpp @@ -174,7 +174,7 @@ void HttpConnection::respondCommand(QString command) { QString urls = parser.post("urls"); QStringList list = urls.split('\n'); - foreach(QString url, list){ + foreach(QString url, list){ url = url.trimmed(); if(!url.isEmpty()){ qDebug("Downloading url: %s", (const char*)url.toUtf8()); diff --git a/src/options_imp.cpp b/src/options_imp.cpp index 8be94f1ab..890ea2271 100644 --- a/src/options_imp.cpp +++ b/src/options_imp.cpp @@ -49,8 +49,7 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){ setupUi(this); // Get apply button in button box QList buttons = buttonBox->buttons(); - QAbstractButton *button; - foreach(button, buttons){ + foreach(QAbstractButton *button, buttons){ if(buttonBox->buttonRole(button) == QDialogButtonBox::ApplyRole){ applyButton = button; break;