Skip to content
This repository has been archived by the owner on Jun 26, 2019. It is now read-only.

Commit

Permalink
FormatHandler: Use range-based for in inner loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Leigh committed Feb 7, 2017
1 parent e1a4ced commit 36c7824
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/ome/files/FormatHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<boost::filesystem::path>::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;
Expand Down

0 comments on commit 36c7824

Please sign in to comment.