Skip to content
Snippets Groups Projects
Commit 61f6a534 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

PERF: use const ref when looping on band metadata

parent 2782a583
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ void PrintMetadataBase(ImageMetadataBase imdb, std::ostream& oss)
void PrintMetadata(ImageMetadata imd, std::ostream& oss)
{
PrintMetadataBase(imd, oss);
for (ImageMetadataBase imdb : imd.Bands)
for (const ImageMetadataBase & imdb : imd.Bands)
PrintMetadataBase(imdb, oss);
}
......
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