The loop was iterating over a temporary, so it couldn't have changed it. Store the container in a local const variable and port to ranged-for. Drive-by change: don't call ps->availablePrintDeviceIds() multiple times. Task-number: QTBUG-115839 Change-Id: If2cabec68040dc7096acf0b7ddeff72d7c8c7750 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| CMakeLists.txt | ||
| tst_qprintdevice.cpp | ||