diff options
author | lutzbichler <52852266+lutzbichler@users.noreply.github.com> | 2022-09-22 15:28:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 15:28:30 +0200 |
commit | 44be74e9d2b432494a0634f997887684c71f187f (patch) | |
tree | cef4ad4821ad3edcfa10ea1da3edf0e5308ba30a /implementation/endpoints/src/endpoint_manager_base.cpp | |
parent | 17cc55f24d1c56f6a5dcca6065a227ca91d01c90 (diff) | |
parent | 0c4d18be3faff0bfc1c8cfbbc26ad4037f3dac12 (diff) | |
download | vSomeIP-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.cpp | 2 |
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( |