Skip to content

Commit 3d79a69

Browse files
committed
fixed misc-override-with-different-visibility clang-tidy warnings
1 parent 96efe84 commit 3d79a69

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

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
@@ -203,8 +203,6 @@ class ResultsTree : public QTreeView {
203203
*/
204204
ShowTypes mShowSeverities;
205205

206-
void keyPressEvent(QKeyEvent *event) override;
207-
208206
void setReportType(ReportType reportType);
209207

210208
signals:
@@ -539,6 +537,8 @@ protected slots:
539537
bool mVisibleErrors{};
540538

541539
private:
540+
void keyPressEvent(QKeyEvent *event) override;
541+
542542
/** tag selected items */
543543
void tagSelectedItems(const QString &tag);
544544

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
@@ -1234,6 +1234,7 @@ struct SingleValueFlowAnalyzer : ValueFlowAnalyzer {
12341234
return false;
12351235
}
12361236

1237+
private:
12371238
ValuePtr<Analyzer> reanalyze(Token* tok, const std::string& msg) const override {
12381239
ValueFlow::Value newValue = value;
12391240
newValue.errorPath.emplace_back(tok, msg);
@@ -1432,6 +1433,7 @@ struct SubExpressionAnalyzer : ExpressionAnalyzer {
14321433
partialReads->emplace_back(tok, v);
14331434
}
14341435

1436+
private:
14351437
// No reanalysis for subexpression
14361438
ValuePtr<Analyzer> reanalyze(Token* /*tok*/, const std::string& /*msg*/) const override {
14371439
return {};

0 commit comments

Comments
 (0)