mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
replace foreach macro with standard for each loop (#5485)
This commit is contained in:
parent
0cbad25385
commit
c148c8df7f
17 changed files with 31 additions and 31 deletions
|
|
@ -121,7 +121,7 @@ void installNewTranslator()
|
|||
QString const generateClientID()
|
||||
{
|
||||
QString macList;
|
||||
foreach (QNetworkInterface networkInterface, QNetworkInterface::allInterfaces()) {
|
||||
for (const QNetworkInterface &networkInterface : QNetworkInterface::allInterfaces()) {
|
||||
if (networkInterface.hardwareAddress() != "")
|
||||
if (networkInterface.hardwareAddress() != "00:00:00:00:00:00:00:E0")
|
||||
macList += networkInterface.hardwareAddress() + ".";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue