some cppcheck and clang-tidy fixies

This commit is contained in:
asapelkin
2019-10-31 23:44:40 +03:00
committed by Jonathan White
parent ac7face247
commit 98badfb4a2
9 changed files with 16 additions and 14 deletions

View File

@@ -90,7 +90,7 @@ void IconDownloader::setUrl(const QString& entryUrl)
// searching for a match with the returned address(es).
bool hostIsIp = false;
QList<QHostAddress> hostAddressess = QHostInfo::fromName(fullyQualifiedDomain).addresses();
for (auto addr : hostAddressess) {
for (const auto& addr : hostAddressess) {
if (addr.toString() == fullyQualifiedDomain) {
hostIsIp = true;
}