summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Keller <Rainer.Keller@qt.io>2017-07-12 09:22:25 +0200
committerRainer Keller <Rainer.Keller@qt.io>2017-07-14 06:07:54 +0000
commitc9827575fe739151db50fa207fde84b65f4c7b03 (patch)
tree6c76bbcdf0472c0c3e0fb9032b1e09a92c11c748
parentbd19e667847d56752b78e40ca51e340462caa436 (diff)
simulator: Fix compile warning
Change-Id: I205089b8a18a16f3da14f39380024fdc55768377 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
-rw-r--r--src/systeminfo/qbatteryinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systeminfo/qbatteryinfo.cpp b/src/systeminfo/qbatteryinfo.cpp
index 5d7ae47c..21afe74c 100644
--- a/src/systeminfo/qbatteryinfo.cpp
+++ b/src/systeminfo/qbatteryinfo.cpp
@@ -156,7 +156,7 @@ QBatteryInfo::QBatteryInfo(int batteryIndex, QObject *parent)
#if !defined(QT_SIMULATOR)
, d_ptr(new QBatteryInfoPrivate(batteryIndex, this))
#else
- , d_ptr(new QBatteryInfoSimulator(this))
+ , d_ptr(new QBatteryInfoSimulator(batteryIndex, this))
#endif // QT_SIMULATOR
{