Couple of const missing.

This commit is contained in:
Federico Ponchio 2004-07-05 17:02:17 +00:00
parent 61a0c73bc1
commit 2bb256fbc4
1 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.2 2004/07/04 14:21:31 ponchio
Added operator< to Link
Revision 1.1 2004/07/02 13:00:02 ponchio
Created.
@ -43,12 +46,12 @@ struct Link {
unsigned int end_patch;
bool IsNull() { return end_patch == 0xffffffff; }
bool operator==(const Link &l) {
bool operator==(const Link &l) const {
return end_patch == l.end_patch &&
end_vert == l.end_vert &&
start_vert == l.start_vert;
}
bool operator<(const Link &l) {
bool operator<(const Link &l) const {
if(end_patch == l.end_patch) {
if(start_vert == l.start_vert) {
return end_vert < l.end_vert;