diff --git a/lib/ome/files/FormatHandler.h b/lib/ome/files/FormatHandler.h index 9db01d5a..51cf3a41 100644 --- a/lib/ome/files/FormatHandler.h +++ b/lib/ome/files/FormatHandler.h @@ -257,15 +257,13 @@ namespace ome if (checkSuffix(name, suffixes)) return true; - for (const auto& suffix : compression_suffixes) + for (const auto& suffix : suffixes) { - for (std::vector::const_iterator si = suffixes.begin(); - si != suffixes.end(); - ++si) + for (const auto& compsuffix : compression_suffixes) { - boost::filesystem::path fullsuffix(*si); + boost::filesystem::path fullsuffix(suffix); fullsuffix += boost::filesystem::path("."); - fullsuffix += suffix; + fullsuffix += compsuffix; if (checkSuffix(name, fullsuffix)) return true;