Skip to content

Commit aa28f3f

Browse files
committed
Removed Cppcheck::terminate()
1 parent 649a754 commit aa28f3f

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

democlient/democlient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class CppcheckExecutor : public ErrorLogger {
6161
const std::size_t value) override {
6262
if (std::time(nullptr) >= stoptime) {
6363
std::cout << "Time to analyse the code exceeded 2 seconds. Terminating.\n\n";
64-
cppcheck.terminate();
64+
Settings::terminate();
6565
}
6666
}
6767
};

gui/checkthread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ void CheckThread::runAddonsAndTools(const ImportProject::FileSettings *fileSetti
301301
void CheckThread::stop()
302302
{
303303
mState = Stopping;
304-
mCppcheck.terminate();
304+
Settings::terminate();
305305
}
306306

307307
void CheckThread::parseClangErrors(const QString &tool, const QString &file0, QString err)

lib/cppcheck.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,6 @@ class CPPCHECKLIB CppCheck : ErrorLogger {
112112

113113
virtual void reportStatus(unsigned int fileindex, unsigned int filecount, std::size_t sizedone, std::size_t sizetotal);
114114

115-
/**
116-
* @brief Terminate checking. The checking will be terminated as soon as possible.
117-
*/
118-
void terminate() {
119-
Settings::terminate();
120-
}
121-
122115
/**
123116
* @brief Call all "getErrorMessages" in all registered Check classes.
124117
* Also print out XML header and footer.

0 commit comments

Comments
 (0)