From b107e5e9e8451fc7977a549eb8cee9d158e82e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 9 Dec 2012 09:30:18 +0100 Subject: [PATCH] cppcheckexecutor: removed time info from verbose progress info. the ctime function that is used is not threadsafe. --- cli/cppcheckexecutor.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 7af5183dc..92670c3f1 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -249,16 +249,11 @@ void CppCheckExecutor::reportProgress(const std::string &filename, const char st if (time2 >= (time1 + 10)) { time1 = time2; - // current time in the format "Www Mmm dd hh:mm:ss yyyy" - const std::string str(std::ctime(&time2)); - // format a progress message std::ostringstream ostr; ostr << "progress: " << stage << ' ' << value << '%'; - if (_settings->_verbose) - ostr << " time=" << str.substr(11, 8); // Report progress message reportOut(ostr.str());