diff --git a/src/preferences/preferences.h b/src/preferences/preferences.h index d8b0c9d20..62a46cb2a 100755 --- a/src/preferences/preferences.h +++ b/src/preferences/preferences.h @@ -894,7 +894,7 @@ public: return value("Preferences/DynDNS/DomainName", "changeme.dyndns.org").toString(); } - void setDynDomainName(const QString name) { + void setDynDomainName(const QString &name) { setValue("Preferences/DynDNS/DomainName", name); } @@ -902,7 +902,7 @@ public: return value("Preferences/DynDNS/Username").toString(); } - void setDynDNSUsername(const QString username) { + void setDynDNSUsername(const QString &username) { setValue("Preferences/DynDNS/Username", username); } @@ -910,7 +910,7 @@ public: return value("Preferences/DynDNS/Password").toString(); } - void setDynDNSPassword(const QString password) { + void setDynDNSPassword(const QString &password) { setValue("Preferences/DynDNS/Password", password); } diff --git a/src/statsdialog.cpp b/src/statsdialog.cpp index 14459f6c4..e514e9fa7 100644 --- a/src/statsdialog.cpp +++ b/src/statsdialog.cpp @@ -85,7 +85,7 @@ void StatsDialog::updateUI() { // num_peers is not reliable (adds up peers, which didn't even overcome tcp handshake) const std::vector torrents = session->getTorrents(); std::vector::const_iterator iBegin = torrents.begin(); - std::vector::const_iterator iEnd = torrents.begin(); + std::vector::const_iterator iEnd = torrents.end(); quint32 peers = 0; for ( ; iBegin < iEnd ; ++iBegin) peers += (*iBegin).status().num_peers;