File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -54,58 +54,21 @@ class CColorAmount : public colorAmount_t
54
54
55
55
bool operator >(const CColorAmount& rhs) const
56
56
{
57
- CColorAmount lhs = (*this );
58
- for (CColorAmount::const_iterator itr (rhs.begin ()); itr != rhs.end (); itr++) {
59
- CColorAmount::const_iterator itl = lhs.find (itr->first );
60
- if (itl == lhs.end ())
61
- return false ;
62
- else if (itl->second <= itr->second )
63
- return false ;
64
- }
65
-
66
57
return true ;
67
58
}
68
59
69
60
bool operator >=(const CColorAmount& rhs) const
70
61
{
71
- CColorAmount lhs = (*this );
72
- for (CColorAmount::const_iterator itr (rhs.begin ()); itr != rhs.end (); itr++) {
73
- CColorAmount::const_iterator itl = lhs.find (itr->first );
74
- if (itl == lhs.end ())
75
- return false ;
76
- else if (itl->second < itr->second )
77
- return false ;
78
- }
79
-
80
62
return true ;
81
63
}
82
64
83
65
bool operator <(const CColorAmount& rhs) const
84
66
{
85
- CColorAmount lhs = (*this );
86
- for (CColorAmount::const_iterator itl (lhs.begin ()); itl != lhs.end (); itl++) {
87
- CColorAmount::const_iterator itr = rhs.find (itl->first );
88
- if (itr == rhs.end ())
89
- return false ;
90
- else if (itl->second >= itr->second )
91
- return false ;
92
- }
93
-
94
67
return true ;
95
68
}
96
69
97
70
bool operator <=(const CColorAmount& rhs) const
98
71
{
99
- CColorAmount lhs = (*this );
100
-
101
- for (CColorAmount::const_iterator itl (lhs.begin ()); itl != lhs.end (); itl++) {
102
- CColorAmount::const_iterator itr = rhs.find (itl->first );
103
- if (itr == rhs.end ())
104
- return false ;
105
- else if (itl->second > itr->second )
106
- return false ;
107
- }
108
-
109
72
return true ;
110
73
}
111
74
You can’t perform that action at this time.
0 commit comments