diff --git a/Event/ByteStreamCnvSvcLegacy/ByteStreamCnvSvcLegacy/offline_EventStorage/v5_EventStorageRecords.h b/Event/ByteStreamCnvSvcLegacy/ByteStreamCnvSvcLegacy/offline_EventStorage/v5_EventStorageRecords.h
index 98b13ba81dacfdb9df4ebe834284f7e3877154a7..97b6e5f869d98c00f62e8e888103fdfa896eadae 100644
--- a/Event/ByteStreamCnvSvcLegacy/ByteStreamCnvSvcLegacy/offline_EventStorage/v5_EventStorageRecords.h
+++ b/Event/ByteStreamCnvSvcLegacy/ByteStreamCnvSvcLegacy/offline_EventStorage/v5_EventStorageRecords.h
@@ -1,5 +1,5 @@
 /*
-  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
diff --git a/Event/ByteStreamCnvSvcLegacy/src/offline_EventStorage/v5_EventStorageRecords.cxx b/Event/ByteStreamCnvSvcLegacy/src/offline_EventStorage/v5_EventStorageRecords.cxx
index da491b0215d1680f785ded77e51cca844562012e..8ebcbd4628b783e0cd411f034d1ba5e4e8a3fdf8 100644
--- a/Event/ByteStreamCnvSvcLegacy/src/offline_EventStorage/v5_EventStorageRecords.cxx
+++ b/Event/ByteStreamCnvSvcLegacy/src/offline_EventStorage/v5_EventStorageRecords.cxx
@@ -1,5 +1,5 @@
 /*
-  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;