Skip to content

Commit f3f04a9

Browse files
Samwelinyalldawson
authored andcommittedMay 10, 2020
remove unwanted ternary operator
1 parent ac0249e commit f3f04a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsprojecttimesettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bool QgsProjectTimeSettings::readXml( const QDomElement &element, const QgsReadW
6363
mTimeStepUnit = QgsUnitTypes::decodeTemporalUnit( element.attribute( QStringLiteral( "timeStepUnit" ), QgsUnitTypes::encodeUnit( QgsUnitTypes::TemporalHours ) ) );
6464
mTimeStep = element.attribute( QStringLiteral( "timeStep" ), "1" ).toDouble();
6565
mFrameRate = element.attribute( QStringLiteral( "frameRate" ), "1" ).toDouble();
66-
mCumulativeTemporalRange = element.attribute( QStringLiteral( "cumulativeTemporalRange" ), "0" ).toInt() == 1 ? true : false;
66+
mCumulativeTemporalRange = element.attribute( QStringLiteral( "cumulativeTemporalRange" ), "0" ).toInt();
6767

6868
return true;
6969
}

0 commit comments

Comments
 (0)
Please sign in to comment.