Skip to content
Snippets Groups Projects
Commit fe222fe6 authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Replace auto with actual type for gcc 4.8/Qt4

gcc 4.8 seems to have trouble denoting the correct type when using
uniform initialization with QStringList.
Refs #0
parent 417d90c3
No related branches found
No related tags found
No related merge requests found
...@@ -47,10 +47,10 @@ bool isAnotherInstanceRunning() { ...@@ -47,10 +47,10 @@ bool isAnotherInstanceRunning() {
QDir procfs{"/proc"}; QDir procfs{"/proc"};
bool otherIsRunning(false); bool otherIsRunning(false);
auto entries{procfs.entryList(QDir::Dirs)}; const QStringList entries{procfs.entryList(QDir::Dirs)};
for (const auto &pidStr : entries) { for (const auto &pidStr : entries) {
bool isDigit(false); bool isDigit(false);
auto pid{pidStr.toLongLong(&isDigit)}; const long long pid{pidStr.toLongLong(&isDigit)};
if (!isDigit) if (!isDigit)
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment