Skip to content
Snippets Groups Projects
Commit d4bd099c authored by Matthew Webster's avatar Matthew Webster
Browse files

Fixed iterator type

parent 3d16160d
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ int printUsage(const string& progname)
cout << "Usage: fslchfiletype[_exe] <filetype> <filename> [filename2]" << endl << endl;
cout << "Changes the file type of the image file [ or copies to new file ]." << endl;
cout << "Valid values for filetype are:" << endl;
for ( std::vector<const pair<string,int> >::iterator it=formats.begin(); it != formats.end(); it++ )
for ( std::vector<pair<string,int> >::const_iterator it=formats.begin(); it != formats.end(); it++ )
cout << "\t" << it->first << endl;
return 1;
}
......@@ -29,7 +29,7 @@ int fmrib_main(int argc, char *argv[])
read_volume(input,string(argv[2]));
int format(-1);
const vector<pair<string,int> > formats=NEWIMAGE::fileFormats::allFormats();
for ( std::vector<const pair<string,int> >::iterator it=formats.begin(); it != formats.end(); it++ )
for ( std::vector<pair<string,int> >::const_iterator it=formats.begin(); it != formats.end(); it++ )
if ( string(argv[1]) == it->first ) format = it->second;
if ( format == -1 )
return printUsage(string(argv[0]));
......
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