File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ namespace Sass {
509
509
{
510
510
const size_t rsize = rhs->length ();
511
511
for (size_t i = 0 ; i < rsize; ++i)
512
- { if (to_string () == rhs->at (i)-> to_string ( )) return rhs; }
512
+ { if (* this == * rhs->at (i)) return rhs; }
513
513
const int lhs_order = this ->unification_order ();
514
514
size_t i = rsize;
515
515
while (i > 0 && lhs_order < rhs->at (i - 1 )->unification_order ()) --i;
Original file line number Diff line number Diff line change @@ -2204,6 +2204,8 @@ namespace Sass {
2204
2204
// dispatch to correct handlers
2205
2205
virtual bool operator <(const Selector& rhs) const = 0 ;
2206
2206
virtual bool operator ==(const Selector& rhs) const = 0 ;
2207
+ bool operator >(const Selector& rhs) const { return rhs < *this ; };
2208
+ bool operator !=(const Selector& rhs) const { return !(rhs == *this ); };
2207
2209
ATTACH_VIRTUAL_AST_OPERATIONS (Selector);
2208
2210
};
2209
2211
inline Selector::~Selector () { }
@@ -2290,6 +2292,7 @@ namespace Sass {
2290
2292
{
2291
2293
if (hash_ == 0 ) {
2292
2294
hash_combine (hash_, std::hash<int >()(SELECTOR));
2295
+ hash_combine (hash_, std::hash<int >()(simple_type ()));
2293
2296
hash_combine (hash_, std::hash<std::string>()(ns ()));
2294
2297
hash_combine (hash_, std::hash<std::string>()(name ()));
2295
2298
}
You can’t perform that action at this time.
0 commit comments