Skip to content
GitLab
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
bb116f51
Commit
bb116f51
authored
Aug 13, 2004
by
Francois Bertel
Browse files
Fixed vs71 warning: unsafe >
parent
1278dda9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/vtkGenericAttributeCollection.cxx
View file @
bb116f51
...
...
@@ -25,7 +25,7 @@
#include
<vtkstd/vector>
#include
<assert.h>
vtkCxxRevisionMacro
(
vtkGenericAttributeCollection
,
"1.
4
"
);
vtkCxxRevisionMacro
(
vtkGenericAttributeCollection
,
"1.
5
"
);
vtkStandardNewMacro
(
vtkGenericAttributeCollection
);
class
vtkGenericAttributeInternalVector
...
...
@@ -360,7 +360,7 @@ int vtkGenericAttributeCollection::HasAttribute(int size,
int
attribute
)
{
assert
(
"pre: positive_size"
&&
size
>=
0
);
assert
(
"pre: valid_attributes"
&&
((
!
size
>
0
)
||
(
attributes
!=
0
)));
// size>0 => attributes!=0 (A=>B: !A||B )
assert
(
"pre: valid_attributes"
&&
((
!
(
size
>
0
)
)
||
(
attributes
!=
0
)));
// size>0 => attributes!=0 (A=>B: !A||B )
int
result
=
0
;
// false
int
i
;
...
...
@@ -385,7 +385,7 @@ void vtkGenericAttributeCollection::SetAttributesToInterpolate(int size,
assert
(
"pre: not_empty"
&&
!
this
->
IsEmpty
());
assert
(
"pre: positive_size"
&&
size
>=
0
);
assert
(
"pre: magic_number"
&&
size
<=
10
);
assert
(
"pre: valid_attributes"
&&
((
!
size
>
0
)
||
(
attributes
!=
0
)));
// size>0 => attributes!=0 (A=>B: !A||B )
assert
(
"pre: valid_attributes"
&&
((
!
(
size
>
0
)
)
||
(
attributes
!=
0
)));
// size>0 => attributes!=0 (A=>B: !A||B )
assert
(
"pre: valid_attributes_contents"
&&
(
!
(
attributes
!=
0
)
||
!
(
!
this
->
HasAttribute
(
size
,
attributes
,
this
->
GetActiveAttribute
()))));
// attributes!=0 => !this->HasAttribute(size,attributes,this->GetActiveAttribute()) (A=>B: !A||B )
this
->
NumberOfAttributesToInterpolate
=
size
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment