Commit 31ab00f5 authored by Julien Osman's avatar Julien Osman

ENH: Avoid copy of parameter for XMLMetadataSupplier::GetFirstAs

parent a7f5ea5b
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment