summaryrefslogtreecommitdiff
path: root/implementation/endpoints/src/endpoint_manager_base.cpp
diff options
context:
space:
mode:
authorlutzbichler <52852266+lutzbichler@users.noreply.github.com>2022-09-22 15:28:30 +0200
committerGitHub <noreply@github.com>2022-09-22 15:28:30 +0200
commit44be74e9d2b432494a0634f997887684c71f187f (patch)
treecef4ad4821ad3edcfa10ea1da3edf0e5308ba30a /implementation/endpoints/src/endpoint_manager_base.cpp
parent17cc55f24d1c56f6a5dcca6065a227ca91d01c90 (diff)
parent0c4d18be3faff0bfc1c8cfbbc26ad4037f3dac12 (diff)
downloadvSomeIP-44be74e9d2b432494a0634f997887684c71f187f.tar.gz
Merge pull request #356 from fynnwilliam/master
Use Reference to Prevent Copying
Diffstat (limited to 'implementation/endpoints/src/endpoint_manager_base.cpp')
-rw-r--r--implementation/endpoints/src/endpoint_manager_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/implementation/endpoints/src/endpoint_manager_base.cpp b/implementation/endpoints/src/endpoint_manager_base.cpp
index 6c63e4f..a79ae48 100644
--- a/implementation/endpoints/src/endpoint_manager_base.cpp
+++ b/implementation/endpoints/src/endpoint_manager_base.cpp
@@ -158,7 +158,7 @@ endpoint_manager_base::log_client_states() const {
{
std::lock_guard<std::mutex> its_lock(local_endpoint_mutex_);
- for (const auto e : local_endpoints_) {
+ for (const auto& e : local_endpoints_) {
size_t its_queue_size = e.second->get_queue_size();
if (its_queue_size > VSOMEIP_DEFAULT_QUEUE_WARN_SIZE) {
its_client_queue_sizes.push_back(