File tree 1 file changed +3
-13
lines changed 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,8 @@ UnorderedSet<std::string> parse_keep_xml_file(const std::string& xml_file_path);
144
144
struct StyleResource {
145
145
struct Value {
146
146
struct Span {
147
+ Span (std::string tag, uint32_t first_char, uint32_t last_char)
148
+ : tag(std::move(tag)), first_char(first_char), last_char(last_char) {}
147
149
std::string tag;
148
150
uint32_t first_char;
149
151
uint32_t last_char;
@@ -175,19 +177,7 @@ struct StyleResource {
175
177
if (value_string != other.value_string ) {
176
178
return false ;
177
179
}
178
- if (styled_string != other.styled_string ) {
179
- return false ;
180
- }
181
-
182
- if (styled_string.size () != other.styled_string .size ()) {
183
- return false ;
184
- }
185
- if (!std::equal (styled_string.begin (),
186
- styled_string.end (),
187
- other.styled_string .begin ())) {
188
- return false ;
189
- }
190
- return true ;
180
+ return styled_string == other.styled_string ;
191
181
}
192
182
193
183
private:
You can’t perform that action at this time.
0 commit comments