Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
82268f3c
Commit
82268f3c
authored
Mar 07, 2013
by
Julien Malik
Browse files
WRG: fix comparison between signed and unsigned
parent
997b6e95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Code/Common/mvdDatasetDescriptor.h
View file @
82268f3c
...
...
@@ -345,8 +345,9 @@ DatasetDescriptor
QString
data
=
textNode
.
data
();
QStringList
stringList
=
data
.
split
(
" "
);
vector
.
resize
(
stringList
.
size
());
for
(
size_t
i
=
0
;
i
<
stringList
.
size
();
++
i
)
size_t
size
=
static_cast
<
size_t
>
(
stringList
.
size
());
vector
.
resize
(
size
);
for
(
size_t
i
=
0
;
i
<
size
;
++
i
)
{
QVariant
v
=
stringList
[
i
];
vector
[
i
]
=
v
.
value
<
T
>
();
...
...
@@ -371,8 +372,9 @@ DatasetDescriptor
QString
data
=
textNode
.
data
();
QStringList
stringList
=
data
.
split
(
" "
);
array
.
SetSize
(
stringList
.
size
());
for
(
size_t
i
=
0
;
i
<
stringList
.
size
();
++
i
)
unsigned
int
size
=
static_cast
<
unsigned
int
>
(
stringList
.
size
());
array
.
SetSize
(
size
);
for
(
unsigned
int
i
=
0
;
i
<
size
;
++
i
)
{
QVariant
v
=
stringList
[
i
];
array
[
i
]
=
v
.
value
<
T
>
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment