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 /test/npdu_tests/npdu_test_service.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 'test/npdu_tests/npdu_test_service.cpp')
-rw-r--r-- | test/npdu_tests/npdu_test_service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/npdu_tests/npdu_test_service.cpp b/test/npdu_tests/npdu_test_service.cpp index 901084b..ccbdd66 100644 --- a/test/npdu_tests/npdu_test_service.cpp +++ b/test/npdu_tests/npdu_test_service.cpp @@ -92,7 +92,7 @@ void npdu_test_service::stop() VSOMEIP_INFO << "Stopping..."; if (!undershot_debounce_times_.empty()) { std::chrono::microseconds sum(0); - for (const auto t : undershot_debounce_times_) { + for (const auto& t : undershot_debounce_times_) { sum += t; } double average = static_cast<double>(sum.count())/static_cast<double>(undershot_debounce_times_.size()); |