From 31ab00f585b7be04484ebfc639acdebce6173efc Mon Sep 17 00:00:00 2001 From: Julien Osman <julien.osman@csgroup.eu> Date: Wed, 15 Jul 2020 10:14:41 +0200 Subject: [PATCH] ENH: Avoid copy of parameter for XMLMetadataSupplier::GetFirstAs --- Modules/Core/Metadata/include/otbXMLMetadataSupplier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Core/Metadata/include/otbXMLMetadataSupplier.h b/Modules/Core/Metadata/include/otbXMLMetadataSupplier.h index bc7a80e864..2b78d3cc96 100644 --- a/Modules/Core/Metadata/include/otbXMLMetadataSupplier.h +++ b/Modules/Core/Metadata/include/otbXMLMetadataSupplier.h @@ -78,7 +78,7 @@ public: * @return The value corresponding to path. * @raises otb::Error if path not found */ - template <typename T> T GetFirstAs(std::string path) const + template <typename T> T GetFirstAs(const std::string &path) const { bool hasValue; std::string ret = GetFirstMetadataValue(path, hasValue); -- GitLab