summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2021-11-18 11:52:46 +0100
committerRobert Griebl <robert.griebl@qt.io>2021-12-01 21:20:10 +0000
commitf245d6bd99bda23e1e7b2ecc7f3731ea440afbad (patch)
treefe8480a1a75400b5c72db02b12b13a4da3ca181c
parent812c46800d83e922b9e80ccde4aab7363f35e1b5 (diff)
downloadqtapplicationmanager-f245d6bd99bda23e1e7b2ecc7f3731ea440afbad.tar.gz
Fix unused member warning on non-Linux platforms
Change-Id: I234cfcf0c913a7548a405d8720805a43f32c1101 Fixes: QTBUG-98418 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 1901a9d4685d1e628402566adcd348a71c5739a7) Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r--src/monitor-lib/processreader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor-lib/processreader.h b/src/monitor-lib/processreader.h
index aa61daae..5ee8c96a 100644
--- a/src/monitor-lib/processreader.h
+++ b/src/monitor-lib/processreader.h
@@ -84,9 +84,9 @@ private:
bool readSmaps(const QByteArray &smapsFile, Memory &mem);
QScopedPointer<SysFsReader> m_statReader;
-#endif
QElapsedTimer m_elapsedTime;
quint64 m_lastCpuUsage = 0.0;
+#endif
qint64 m_pid = 0;
bool m_memoryReportingEnabled = true;