From fe222fe6707cc73cabe28acc56d8360cbbfb6e0d Mon Sep 17 00:00:00 2001
From: Martyn Gigg <martyn.gigg@stfc.ac.uk>
Date: Tue, 24 Jul 2018 08:10:53 +0100
Subject: [PATCH] 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
---
 MantidPlot/src/Process.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MantidPlot/src/Process.cpp b/MantidPlot/src/Process.cpp
index 267d83724d1..b9dc2d4aec4 100644
--- a/MantidPlot/src/Process.cpp
+++ b/MantidPlot/src/Process.cpp
@@ -47,10 +47,10 @@ bool isAnotherInstanceRunning() {
   QDir procfs{"/proc"};
 
   bool otherIsRunning(false);
-  auto entries{procfs.entryList(QDir::Dirs)};
+  const QStringList entries{procfs.entryList(QDir::Dirs)};
   for (const auto &pidStr : entries) {
     bool isDigit(false);
-    auto pid{pidStr.toLongLong(&isDigit)};
+    const long long pid{pidStr.toLongLong(&isDigit)};
     if (!isDigit)
       continue;
 
-- 
GitLab