Skip to content

Commit

Permalink
Some fixes from static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Dec 8, 2016
1 parent f86d92d commit 75245d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions OMEdit/OMEditGUI/Animation/AnimationWindow.cpp
Expand Up @@ -584,9 +584,6 @@ void AnimationWindow::openFMUSettingsDialog()
QLabel *solverLabel = new QLabel(tr("solver"));
QComboBox *solverComboBox = new QComboBox(mpFMUSettingsDialog);
solverComboBox->addItem(QString("euler forward"));
QLabel *stepsizeLabel = new QLabel(tr("step size"));
QTextEdit *stepSizeEdit = new QTextEdit("0.001");
stepSizeEdit->setMaximumSize(QSize(48,16));
//assemble
mainLayout->addWidget(simulationLabel);
mainLayout->addLayout(simulationLayout);
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Editors/ModelicaEditor.cpp
Expand Up @@ -537,7 +537,7 @@ void ModelicaHighlighter::highlightMultiLine(const QString &text)
parentheses.append(Parenthesis(Parenthesis::Closed, text[index], index));
}
}
if (foldingState) {
if (pTextBlockUserData && foldingState) {
// if no single line comment, no multi line comment and no quotes then check for annotation end
if (blockState < 1 || blockState > 3) {
if (text[index] == ';') {
Expand Down

0 comments on commit 75245d0

Please sign in to comment.