Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Jun 29, 2024
1 parent 828161d commit 6057a18
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gui/resultstree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void ResultsTree::keyPressEvent(QKeyEvent *event)
QTreeView::keyPressEvent(event);
}

void ResultsTree::setReportType(QString reportType) {
void ResultsTree::setReportType(const QString& reportType) {
auto readIdMapping = [this](const std::vector<checkers::IdMapping>& idMapping) {
for (const auto& i: idMapping)
for (const QString& cppcheckId: QString(i.cppcheckId).split(","))
Expand Down
2 changes: 1 addition & 1 deletion gui/resultstree.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class ResultsTree : public QTreeView {

void keyPressEvent(QKeyEvent *event) override;

void setReportType(QString reportType);
void setReportType(const QString& reportType);

enum class ReportType {normal, autosar, certC, certCpp, misraC, misraCpp2008, misraCpp2023};

Expand Down
4 changes: 2 additions & 2 deletions gui/resultsview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ const ShowTypes & ResultsView::getShowTypes() const
return mUI->mTree->mShowSeverities;
}

void ResultsView::setReportType(QString name) {
mUI->mTree->setReportType(name);
void ResultsView::setReportType(const QString& reportType) {
mUI->mTree->setReportType(reportType);
}

void ResultsView::progress(int value, const QString& description)
Expand Down
2 changes: 1 addition & 1 deletion gui/resultsview.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class ResultsView : public QWidget {
*/
const ShowTypes & getShowTypes() const;

void setReportType(QString name);
void setReportType(const QString& reportType);

signals:

Expand Down

0 comments on commit 6057a18

Please sign in to comment.