Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
avwutils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
avwutils
Commits
d4bd099c
Commit
d4bd099c
authored
5 years ago
by
Matthew Webster
Browse files
Options
Downloads
Patches
Plain Diff
Fixed iterator type
parent
3d16160d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fslchfiletype.cc
+2
-2
2 additions, 2 deletions
fslchfiletype.cc
with
2 additions
and
2 deletions
fslchfiletype.cc
+
2
−
2
View file @
d4bd099c
...
...
@@ -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
]));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment