Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Feb 4, 2020
1 parent 4edb030 commit dc121d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/support/CellMLSupport/src/cellmlfileruntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,10 @@ void CellmlFileRuntime::update(CellmlFile *pCellmlFile, bool pAll)

static const QRegularExpression InitializationStatementRegEx = QRegularExpression(R"(^(CONSTANTS|RATES|STATES)\[\d*\] = [+-]?\d*\.?\d+([eE][+-]?\d+)?;$)");

QStringList initConstsList = cleanCode(mCodeInformation->initConstsString()).split('\n');
QString initConsts;
QString compCompConsts;

for (const auto &initConst : initConstsList) {
for (const auto &initConst : cleanCode(mCodeInformation->initConstsString()).split('\n')) {
// Add the statement either to our list of 'proper' constants or
// 'computed' constants

Expand Down

0 comments on commit dc121d8

Please sign in to comment.