diff --git a/Applications/DataExplorer/VtkVis/VtkRaster.cpp b/Applications/DataExplorer/VtkVis/VtkRaster.cpp index 91d6e4a817afc259401895e0e0e6414a09d28ea4..db80c188292ca0a16f1155a8400eb933dc8a2056 100644 --- a/Applications/DataExplorer/VtkVis/VtkRaster.cpp +++ b/Applications/DataExplorer/VtkVis/VtkRaster.cpp @@ -309,12 +309,9 @@ std::string VtkRaster::findWorldFile(std::string const& filename) { std::string const no_ext = BaseLib::dropFileExtension(filename); - std::vector<std::string> const supported_extensions = - { ".pgw", ".pngw", ".pgwx", - ".jgw", ".jpgw", ".jgwx", - ".tfw", ".tifw", ".tfwx", - ".bpw", ".bmpw", ".bpwx", - ".wld" }; + constexpr std::array supported_extensions = { + ".pgw", ".pngw", ".pgwx", ".jgw", ".jpgw", ".jgwx", ".tfw", + ".tifw", ".tfwx", ".bpw", ".bmpw", ".bpwx", ".wld"}; auto const res = std::find_if(supported_extensions.begin(), supported_extensions.end(),