From 3f83572f44eb5ec8f515e39f3b376734504f517a Mon Sep 17 00:00:00 2001 From: Fabien Proriol Date: Wed, 22 Jul 2015 15:08:08 +0200 Subject: [PATCH] Remove redondancy --- car.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/car.cpp b/car.cpp index 5512f81..10c8205 100644 --- a/car.cpp +++ b/car.cpp @@ -717,11 +717,11 @@ double Car::budget_invest_total() double Car::budget_invest() { //returns bying costs per 100 KM - if (maxdistance()== mindistance()) return 0; + if (maxdistance()== mindistance()) return 0.0; QDate today = QDate::currentDate(); unsigned int monthsused = 1; double valuecosts; - if (maxdistance()==mindistance() ) return 0.0; + if (_buyingdate.toString()=="") { qDebug() << "Invalid buying date ";