diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2010-12-15 09:40:15 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2010-12-15 09:40:15 +1000 |
commit | 0c926e9d40e38148979decdb90a5f74cbda2d79d (patch) | |
tree | 22bd2db286c556c1eb93ee698ed1f334b485c687 /tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp | |
parent | bf6d050ea4bcbf09c282e1765848bcb75c248ab8 (diff) |
dont use a pointer to ActiveProfileDetails
Diffstat (limited to 'tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp')
-rw-r--r-- | tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp index 2038bcd78d..1b64061c6b 100644 --- a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp +++ b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp @@ -314,10 +314,10 @@ void tst_QSystemDeviceInfo::tst_lockStatus() void tst_QSystemDeviceInfo::tst_getActiveProfileDetails() { QSystemDeviceInfo di; - QSystemDeviceInfo::ActiveProfileDetails *details = di.getActiveProfileDetails(); - int vol = details->messageRingtoneVolume(); - int vol2 = details->voiceRingtoneVolume(); - bool vib = details->vibrationActive(); + QSystemDeviceInfo::ActiveProfileDetails details = di.getActiveProfileDetails(); + int vol = details.messageRingtoneVolume(); + int vol2 = details.voiceRingtoneVolume(); + bool vib = details.vibrationActive(); if(di.currentProfile() != QSystemDeviceInfo::UnknownProfile) { QVERIFY(vol > -1 && vol < 101); QVERIFY(vol2 > -1 && vol2 < 101); |