Skip to content
Snippets Groups Projects
Commit 8037f7be authored by Scott Snyder's avatar Scott Snyder Committed by Frank Winklmeier
Browse files

ByteStreamCnvSvcLegacy: Fix cppcheck warning.

ByteStreamCnvSvcLegacy: Fix cppcheck warning.

Pass object by const reference, not by value.
parent bf54abc5
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
/**
......@@ -178,7 +178,7 @@ namespace offline_EventStorage_v5 {
};
std::string string_record(void *ri, const void *pi);
std::string string_record(file_name_strings nst);
std::string string_record(const file_name_strings& nst);
void reset_record(void *ri, const void *pi);
} // for namespace
......
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
//
......@@ -30,7 +30,7 @@ std::string offline_EventStorage_v5::string_record(void *ri, const void *pi) {
return rs;
}
std::string offline_EventStorage_v5::string_record(offline_EventStorage_v5::file_name_strings nst) {
std::string offline_EventStorage_v5::string_record(const offline_EventStorage_v5::file_name_strings& nst) {
std::ostringstream s;
......
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