Skip to content
Snippets Groups Projects
Commit 6189aa57 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

tidy: ctd

parent 8c23f49d
No related branches found
No related tags found
1 merge request!348resolve most remaining warnings from clang-tidy
......@@ -229,10 +229,7 @@ bool PythonSyntaxHighlighter::matchMultiline(const QString& text, const QRegExp&
start = delimiter.indexIn(text, start + length);
}
// Return True if still inside a multi-line string, False otherwise
if (currentBlockState() == inState)
return true;
else
return false;
return currentBlockState() == inState;
}
const QTextCharFormat PythonSyntaxHighlighter::getTextCharFormat(const QString& colorName,
......
......@@ -65,7 +65,7 @@ void PlotStatusLabel::setPlotLabelEnabled(ScientificPlot* plot, bool flag)
//! Connects with colorMap's status string signal.
void PlotStatusLabel::setConnected(ScientificPlot* plot, bool flag)
void PlotStatusLabel::setConnected(ScientificPlot* plot, bool flag) const
{
if (flag) {
connect(plot, &ScientificPlot::statusString, this, &PlotStatusLabel::onPlotStatusString,
......
......@@ -45,7 +45,7 @@ private slots:
private:
void setPlotLabelEnabled(ScientificPlot* plot, bool flag);
void setConnected(ScientificPlot* plot, bool flag);
void setConnected(ScientificPlot* plot, bool flag) const;
QList<ScientificPlot*> m_plots;
};
......
......@@ -150,7 +150,7 @@ void JobSelectorActions::setupEqualizeMenu(QMenu& menu)
}
}
void JobSelectorActions::setAllActionsEnabled(bool value)
void JobSelectorActions::setAllActionsEnabled(bool value) const
{
m_runJobAction->setEnabled(value);
m_removeJobAction->setEnabled(value);
......
......@@ -43,7 +43,7 @@ public slots:
private:
void initItemContextMenu(QMenu& menu, const QModelIndex& indexAtPoint);
void setupEqualizeMenu(QMenu& menu);
void setAllActionsEnabled(bool value);
void setAllActionsEnabled(bool value) const;
bool canRunJob(const QModelIndex& index) const;
bool canRemoveJob(const QModelIndex& index) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment