Skip to content

Commit 71fa4e8

Browse files
committed
avoid unwanted reportProgress call in ~ProgressReporter
1 parent c331d49 commit 71fa4e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/errorlogger.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ class CPPCHECKLIB ProgressReporter {
299299
}
300300

301301
~ProgressReporter() {
302+
if (mReportProgressInterval < 0)
303+
return;
302304
mErrorLogger.reportProgress(mFilename, mStage.c_str(), 100);
303305
}
304306

0 commit comments

Comments
 (0)