Skip to content
Snippets Groups Projects
Commit 31ab00f5 authored by Julien Osman's avatar Julien Osman
Browse files

ENH: Avoid copy of parameter for XMLMetadataSupplier::GetFirstAs

parent a7f5ea5b
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment