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
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ public: ...@@ -78,7 +78,7 @@ public:
* @return The value corresponding to path. * @return The value corresponding to path.
* @raises otb::Error if path not found * @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; bool hasValue;
std::string ret = GetFirstMetadataValue(path, hasValue); std::string ret = GetFirstMetadataValue(path, hasValue);
......
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