Skip to content

Commit abdfbc1

Browse files
committed
fixed misc-override-with-different-visibility clang-tidy warnings
1 parent bd9f2a2 commit abdfbc1

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

gui/checkthread.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ class CheckThread : public QThread {
7878
mSuppressionsUi = s;
7979
}
8080

81-
/**
82-
* @brief method that is run in a thread
83-
*
84-
*/
85-
void run() override;
86-
8781
void stop();
8882

8983
/**
@@ -137,6 +131,12 @@ class CheckThread : public QThread {
137131
std::shared_ptr<Suppressions> mSuppressions;
138132

139133
private:
134+
/**
135+
* @brief method that is run in a thread
136+
*
137+
*/
138+
void run() override;
139+
140140
void runAddonsAndTools(const Settings& settings, const FileSettings *fileSettings, const QString &fileName);
141141

142142
void parseClangErrors(const QString &tool, const QString &file0, QString err);

gui/resultstree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ class ResultsTree : public QTreeView {
202202
*/
203203
ShowTypes mShowSeverities;
204204

205-
void keyPressEvent(QKeyEvent *event) override;
206-
207205
void setReportType(ReportType reportType);
208206

209207
signals:
@@ -538,6 +536,8 @@ protected slots:
538536
bool mVisibleErrors{};
539537

540538
private:
539+
void keyPressEvent(QKeyEvent *event) override;
540+
541541
/** tag selected items */
542542
void tagSelectedItems(const QString &tag);
543543

gui/translationhandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct TranslationInfo {
5959
* track which translation is the currently active translation.
6060
*
6161
*/
62-
class TranslationHandler : QObject {
62+
class TranslationHandler : public QObject {
6363
Q_OBJECT
6464
public:
6565
explicit TranslationHandler(QObject *parent = nullptr);

lib/vf_analyzers.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ struct SingleValueFlowAnalyzer : ValueFlowAnalyzer {
12261226
return false;
12271227
}
12281228

1229+
private:
12291230
ValuePtr<Analyzer> reanalyze(Token* tok, const std::string& msg) const override {
12301231
ValueFlow::Value newValue = value;
12311232
newValue.errorPath.emplace_back(tok, msg);
@@ -1424,6 +1425,7 @@ struct SubExpressionAnalyzer : ExpressionAnalyzer {
14241425
partialReads->emplace_back(tok, v);
14251426
}
14261427

1428+
private:
14271429
// No reanalysis for subexpression
14281430
ValuePtr<Analyzer> reanalyze(Token* /*tok*/, const std::string& /*msg*/) const override {
14291431
return {};

0 commit comments

Comments
 (0)