From 58f3d09d714b1fb01f50ba8d90beb3f49fe51262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 5 Sep 2017 12:57:45 +0100 Subject: [PATCH] Port away from QRegExp. --- src/fs/linuxswap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fs/linuxswap.cpp b/src/fs/linuxswap.cpp index a757f6e..fa3d1f7 100644 --- a/src/fs/linuxswap.cpp +++ b/src/fs/linuxswap.cpp @@ -23,6 +23,7 @@ #include #include +#include #include namespace FS @@ -185,7 +186,7 @@ qint64 linuxswap::readUsedCapacity(const QString& deviceNode) const swapsFile.close(); QTextStream in(&data); while (!in.atEnd()) { - QStringList line = in.readLine().split(QRegExp(QStringLiteral("\\s+"))); + QStringList line = in.readLine().split(QRegularExpression(QStringLiteral("\\s+"))); QFileInfo kernelPath(deviceNode); if (line[0] == kernelPath.canonicalFilePath()) return line[3].toLongLong() * 1024;