diff --git a/MantidPlot/src/Process.cpp b/MantidPlot/src/Process.cpp
index 267d83724d1381c4184e41ec5159e8545b97d7e5..b9dc2d4aec4a298a9c6da4f8b3951ba1745de8b7 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;