Skip to content

Commit 4e5dabe

Browse files
committed
fixed functionConst selfcheck warnings
1 parent edac527 commit 4e5dabe

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cli/cppcheckexecutor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ int CppCheckExecutor::check(int argc, const char* const argv[])
377377
return ret;
378378
}
379379

380-
int CppCheckExecutor::check_wrapper(const Settings& settings, Suppressions& supprs)
380+
int CppCheckExecutor::check_wrapper(const Settings& settings, Suppressions& supprs) const
381381
{
382382
#ifdef USE_WINDOWS_SEH
383383
if (settings.exceptionHandling) {

cli/cppcheckexecutor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class CppCheckExecutor {
7979
* @param settings the settings
8080
* @param supprs the suppressions
8181
**/
82-
int check_wrapper(const Settings& settings, Suppressions& supprs);
82+
int check_wrapper(const Settings& settings, Suppressions& supprs) const;
8383

8484
/**
8585
* Starts the checking.

cli/processexecutor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ bool ProcessExecutor::handleRead(int rpipe, unsigned int &result, const std::str
261261
return res;
262262
}
263263

264-
bool ProcessExecutor::checkLoadAverage(size_t nchildren)
264+
bool ProcessExecutor::checkLoadAverage(size_t nchildren) const
265265
{
266266
#if defined(__QNX__) || defined(__HAIKU__) // getloadavg() is unsupported on Qnx, Haiku.
267267
(void)nchildren;

cli/processexecutor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ProcessExecutor : public Executor {
5959
* @param nchildren - count of currently ran children
6060
* @return true - if new process can be started
6161
*/
62-
bool checkLoadAverage(size_t nchildren);
62+
bool checkLoadAverage(size_t nchildren) const;
6363

6464
/**
6565
* @brief Reports internal errors related to child processes

0 commit comments

Comments
 (0)