Skip to content
Snippets Groups Projects
Commit 6444a081 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

EventContainers: Fix clang 10 warning.

Avoid spurious object copy in range for.
parent 91d279f7
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "EventContainers/IdentifiableContainerMT.h"
#include <vector>
......@@ -190,7 +190,7 @@ public:
std::abort();
}
//Check random access method
for(const auto x : hashes) {
for(const auto& x : hashes) {
auto p = container.indexFindPtr(x);
int j =0;
for(auto q : *p) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment