From 6f97a7c4fa8379b9cc28ef34c195e24abf727530 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Mon, 19 Jan 2015 13:45:39 +0100 Subject: [PATCH] containers_cpp: removed cppcheck style warnings --- containers_cpp/test/object_pool_test.cc | 2 +- containers_cpp/test/object_pool_test.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/containers_cpp/test/object_pool_test.cc b/containers_cpp/test/object_pool_test.cc index 76da782..50fa605 100644 --- a/containers_cpp/test/object_pool_test.cc +++ b/containers_cpp/test/object_pool_test.cc @@ -32,7 +32,7 @@ ObjectPoolTestStruct::ObjectPoolTestStruct(int thread_id) : thread_id(thread_id) { } -int ObjectPoolTestStruct::GetThreadId() { +int ObjectPoolTestStruct::GetThreadId() const { return thread_id; } } // namespace test diff --git a/containers_cpp/test/object_pool_test.h b/containers_cpp/test/object_pool_test.h index 9902888..ebb7861 100644 --- a/containers_cpp/test/object_pool_test.h +++ b/containers_cpp/test/object_pool_test.h @@ -39,7 +39,7 @@ class ObjectPoolTestStruct { int thread_id; public: explicit ObjectPoolTestStruct(int thread_id); - int GetThreadId(); + int GetThreadId() const; }; template -- libgit2 0.26.0