Skip to content

Commit 5991db9

Browse files
committed
fixed functionConst selfcheck warnings
1 parent a5f8d50 commit 5991db9

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

cli/cppcheckexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ int CppCheckExecutor::check(int argc, const char* const argv[])
429429
return ret;
430430
}
431431

432-
int CppCheckExecutor::check_wrapper(const Settings& settings, Suppressions& supprs)
432+
int CppCheckExecutor::check_wrapper(const Settings& settings, Suppressions& supprs) const
433433
{
434434
#ifdef USE_WINDOWS_SEH
435435
if (settings.exceptionHandling) {

cli/cppcheckexecutor.h

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ bool ProcessExecutor::handleRead(int rpipe, unsigned int &result, const std::str
274274
return res;
275275
}
276276

277-
bool ProcessExecutor::checkLoadAverage(size_t nchildren)
277+
bool ProcessExecutor::checkLoadAverage(size_t nchildren) const
278278
{
279279
#if defined(__QNX__) || defined(__HAIKU__) || defined(_AIX) // getloadavg() is unsupported on Qnx, Haiku, AIX.
280280
(void)nchildren;

cli/processexecutor.h

Lines changed: 1 addition & 1 deletion
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

test/testcmdlineparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ class TestCmdlineParser : public TestFixture {
12141214
ASSERT_EQUALS(1U, files.size());
12151215
}
12161216

1217-
void fileFilterFileWithDetailsCase() {
1217+
void fileFilterFileWithDetailsCase() const {
12181218
// in windows, paths are case insensitive
12191219
const std::vector<std::string> fileFilters{"m1.c"};
12201220
const std::list<FileWithDetails> filesResolved{ FileWithDetails("M1.C", Standards::Language::C, 123) };

0 commit comments

Comments
 (0)