Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
7c7cdb38
Commit
7c7cdb38
authored
Apr 06, 2010
by
Robert Maynard
Browse files
COMP: Fixed unsigned / signed mismatch and a shadow decleration.
parent
17c972d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Filtering/vtkDataSetAttributes.cxx
View file @
7c7cdb38
...
...
@@ -39,7 +39,7 @@ namespace
}
class
vtkDataSetAttributes
::
vtkInternalComponentNames
:
public
vtkInternalComponentNameBase
{};
vtkCxxRevisionMacro
(
vtkDataSetAttributes
,
"1.3
6
"
);
vtkCxxRevisionMacro
(
vtkDataSetAttributes
,
"1.3
7
"
);
vtkStandardNewMacro
(
vtkDataSetAttributes
);
//--------------------------------------------------------------------------
...
...
@@ -1485,7 +1485,7 @@ void vtkDataSetAttributes::InternalCopyAllocate(
vtkAbstractArray
*
newAA
=
0
;
vtkDataArray
*
newDA
=
0
;
vtkStdString
*
compName
;
int
i
,
j
;
int
i
;
// Allocate attributes if any
for
(
i
=
0
;
i
<
list
.
NumberOfFields
;
i
++
)
...
...
@@ -1498,7 +1498,7 @@ void vtkDataSetAttributes::InternalCopyAllocate(
if
(
list
.
FieldComponentsNames
[
i
]
)
{
for
(
j
=
0
;
j
<
list
.
FieldComponentsNames
[
i
]
->
size
();
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
list
.
FieldComponentsNames
[
i
]
->
size
();
++
j
)
{
compName
=
list
.
FieldComponentsNames
[
i
]
->
at
(
j
);
if
(
compName
)
...
...
@@ -2107,13 +2107,14 @@ void vtkDataSetAttributes::FieldList::SetField(
if
(
aa
->
HasAComponentName
()
)
{
this
->
FieldComponentsNames
[
index
]
->
resize
(
numberOfComponents
,
NULL
);
const
char
*
name
;
name
=
NULL
;
for
(
vtkIdType
i
=
0
;
i
<
numberOfComponents
;
++
i
)
{
name
=
aa
->
GetComponentName
(
i
);
if
(
name
)
{
this
->
FieldComponentsNames
[
index
]
->
at
(
i
)
=
new
vtkStdString
(
name
);
name
=
NULL
;
}
}
}
...
...
Write
Preview
Supports
Markdown
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