Simplify requestPropertyComplete logic in CallMeter
authorAlexander Kanavin <alex.kanavin@gmail.com>
Fri, 5 Aug 2011 14:55:29 +0000 (17:55 +0300)
committerAlexander Kanavin <alex.kanavin@gmail.com>
Fri, 5 Aug 2011 15:11:32 +0000 (18:11 +0300)
lib/ofonocallmeter.cpp

index f3d8a11..9247311 100644 (file)
@@ -48,7 +48,7 @@ void OfonoCallMeter::requestCallMeter()
 void OfonoCallMeter::requestPropertyComplete(bool success, const QString& property, const QVariant& value)
 {
     if (property == "CallMeter") {     
-        success ? emit callMeterComplete(true, value.value<uint>()) : emit callMeterComplete(false, 0);
+        emit callMeterComplete(success, value.value<uint>());
     }
 }