File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,19 @@ namespace Sass {
88
88
bool Selector_Schema::has_parent_ref () const
89
89
{
90
90
if (String_Schema_Obj schema = Cast<String_Schema>(contents ())) {
91
- return !schema->empty () && typeid (*schema->at (0 )) == typeid (Parent_Selector);
91
+ if (schema->empty ()) return false ;
92
+ const auto & first = *schema->at (0 );
93
+ return typeid (first) == typeid (Parent_Selector);
92
94
}
93
95
return false ;
94
96
}
95
97
96
98
bool Selector_Schema::has_real_parent_ref () const
97
99
{
98
100
if (String_Schema_Obj schema = Cast<String_Schema>(contents ())) {
99
- return !schema->empty () && typeid (*schema->at (0 )) == typeid (Parent_Reference);
101
+ if (schema->empty ()) return false ;
102
+ const auto & first = *schema->at (0 );
103
+ return typeid (first) == typeid (Parent_Reference);
100
104
}
101
105
return false ;
102
106
}
You can’t perform that action at this time.
0 commit comments