Skip to content
Permalink
Browse files

remove unwanted ternary operator

  • Loading branch information
Samweli authored and nyalldawson committed May 10, 2020
1 parent ac0249e commit f3f04a94d5216d9842f10490e12e48c161143f7c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsprojecttimesettings.cpp
@@ -63,7 +63,7 @@ bool QgsProjectTimeSettings::readXml( const QDomElement &element, const QgsReadW
mTimeStepUnit = QgsUnitTypes::decodeTemporalUnit( element.attribute( QStringLiteral( "timeStepUnit" ), QgsUnitTypes::encodeUnit( QgsUnitTypes::TemporalHours ) ) );
mTimeStep = element.attribute( QStringLiteral( "timeStep" ), "1" ).toDouble();
mFrameRate = element.attribute( QStringLiteral( "frameRate" ), "1" ).toDouble();
mCumulativeTemporalRange = element.attribute( QStringLiteral( "cumulativeTemporalRange" ), "0" ).toInt() == 1 ? true : false;
mCumulativeTemporalRange = element.attribute( QStringLiteral( "cumulativeTemporalRange" ), "0" ).toInt();

return true;
}

0 comments on commit f3f04a9

Please sign in to comment.
You can’t perform that action at this time.