Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
8aff7b62
Commit
8aff7b62
authored
13 years ago
by
OTB Bot
Browse files
Options
Downloads
Patches
Plain Diff
STYLE
parent
32adb052
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/ApplicationEngine/otbWrapperListViewParameter.cxx
+6
-7
6 additions, 7 deletions
Code/ApplicationEngine/otbWrapperListViewParameter.cxx
Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
+2
-2
2 additions, 2 deletions
Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
with
8 additions
and
9 deletions
Code/ApplicationEngine/otbWrapperListViewParameter.cxx
+
6
−
7
View file @
8aff7b62
...
...
@@ -131,7 +131,7 @@ ListViewParameter::ClearChoices()
m_ChoiceList
.
clear
();
}
void
void
ListViewParameter
::
SetSelectedItemsByNames
()
{
std
::
vector
<
int
>
selectedItems
;
...
...
@@ -140,10 +140,10 @@ ListViewParameter::SetSelectedItemsByNames()
{
const
std
::
string
selectedName
=
m_SelectedNames
[
i
];
unsigned
int
j
(
0
);
for
(
;
j
<
names
.
size
();
j
++
)
for
(;
j
<
names
.
size
();
j
++
)
{
if
(
names
[
j
]
==
selectedName
)
{
{
selectedItems
.
push_back
(
j
);
break
;
}
...
...
@@ -163,8 +163,7 @@ ListViewParameter::SetSelectedItemsByNames()
}
void
void
ListViewParameter
::
SetSelectedItemsByKeys
()
{
std
::
vector
<
int
>
selectedItems
;
...
...
@@ -174,10 +173,10 @@ ListViewParameter::SetSelectedItemsByKeys()
const
std
::
string
selectedKey
=
m_SelectedKeys
[
i
];
unsigned
int
j
(
0
);
itk
::
OStringStream
oss
;
for
(
;
j
<
keys
.
size
();
j
++
)
for
(;
j
<
keys
.
size
();
j
++
)
{
if
(
keys
[
j
]
==
selectedKey
)
{
{
selectedItems
.
push_back
(
j
);
break
;
}
...
...
This diff is collapsed.
Click to expand it.
Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
+
2
−
2
View file @
8aff7b62
...
...
@@ -367,7 +367,7 @@ CommandLineLauncher::LoadParameters()
outPixType
=
ImagePixelType_float
;
else
if
(
values
[
1
]
==
"double"
)
outPixType
=
ImagePixelType_double
;
else
else
{
return
WRONGPARAMETERVALUE
;
}
...
...
@@ -637,7 +637,7 @@ CommandLineLauncher::DisplayParameterHelp( const Parameter::Pointer & param, con
}
else
{
if
(
type
==
ParameterType_OutputImage
)
if
(
type
==
ParameterType_OutputImage
)
{
oss
<<
"
\t
Default value: filename: none"
<<
std
::
endl
;
oss
<<
"
\t
pixel type: float"
<<
std
::
endl
;
...
...
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