We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f46311 commit 829b5f1Copy full SHA for 829b5f1
src/eventhandlers/uinputeventhandler.cpp
@@ -26,7 +26,6 @@
26
#include <QFileInfo>
27
#include <QMessageBox>
28
#include <QStringList>
29
-#include <QStringListIterator>
30
#include <QTimer>
31
32
#include <antkeymapper.h>
@@ -289,17 +288,14 @@ int UInputEventHandler::openUInputHandle()
289
288
locations.append("/dev/misc/uinput");
290
291
QString possibleLocation;
292
- QStringListIterator iter(locations);
293
294
- while (iter.hasNext())
+ for (auto &&temp : locations)
295
{
296
- QString temp = iter.next();
297
QFileInfo tempFileInfo(temp);
298
-
299
if (tempFileInfo.exists())
300
301
possibleLocation = temp;
302
- iter.toBack();
+ break;
303
}
304
305
0 commit comments