Commit 6f97a7c4 by Marcus Winter

containers_cpp: removed cppcheck style warnings

parent 6e869a71
...@@ -32,7 +32,7 @@ ObjectPoolTestStruct::ObjectPoolTestStruct(int thread_id) ...@@ -32,7 +32,7 @@ ObjectPoolTestStruct::ObjectPoolTestStruct(int thread_id)
: thread_id(thread_id) { : thread_id(thread_id) {
} }
int ObjectPoolTestStruct::GetThreadId() { int ObjectPoolTestStruct::GetThreadId() const {
return thread_id; return thread_id;
} }
} // namespace test } // namespace test
......
...@@ -39,7 +39,7 @@ class ObjectPoolTestStruct { ...@@ -39,7 +39,7 @@ class ObjectPoolTestStruct {
int thread_id; int thread_id;
public: public:
explicit ObjectPoolTestStruct(int thread_id); explicit ObjectPoolTestStruct(int thread_id);
int GetThreadId(); int GetThreadId() const;
}; };
template<typename ValuePool> template<typename ValuePool>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment