Neal Wilson 11 gadus atpakaļ
vecāks
revīzija
1b8805b6f1
1 mainītis faili ar 1 papildinājumiem un 5 dzēšanām
  1. 1
    5
      src/typica.w

+ 1
- 5
src/typica.w Parādīt failu

11347
 	column = xmlin.attributes().value("series").toString().isEmpty() ?
11347
 	column = xmlin.attributes().value("series").toString().isEmpty() ?
11348
 	         firstc : temperatureColumns.value(xmlin.attributes().
11348
 	         firstc : temperatureColumns.value(xmlin.attributes().
11349
 			                                   value("series").toString());
11349
 			                                   value("series").toString());
11350
-	bool relative = false;
11351
-	if(xmlin.attributes().value("relative") == "true")
11352
-	{
11353
-		relative = true;
11354
-	}
11350
+	bool relative = (xmlin.attributes().value("relative") == "true");
11355
 	tempval = xmlin.readElementText().toDouble();
11351
 	tempval = xmlin.readElementText().toDouble();
11356
 	Measurement measurement(tempval, timeval);
11352
 	Measurement measurement(tempval, timeval);
11357
 	if(relative)
11353
 	if(relative)

Notiek ielāde…
Atcelt
Saglabāt