File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,7 @@ LayoutOverrideSource::LayoutOverrideSource(StringRef Filename) {
147
147
148
148
// Skip over this offset, the following comma, and any spaces.
149
149
LineStr = LineStr.substr (1 );
150
- while (!LineStr.empty () && isWhitespace (LineStr[0 ]))
151
- LineStr = LineStr.substr (1 );
150
+ LineStr = LineStr.drop_while (isWhitespace);
152
151
}
153
152
}
154
153
@@ -163,8 +162,7 @@ LayoutOverrideSource::LayoutOverrideSource(StringRef Filename) {
163
162
164
163
// Skip over this offset, the following comma, and any spaces.
165
164
LineStr = LineStr.substr (1 );
166
- while (!LineStr.empty () && isWhitespace (LineStr[0 ]))
167
- LineStr = LineStr.substr (1 );
165
+ LineStr = LineStr.drop_while (isWhitespace);
168
166
}
169
167
continue ;
170
168
}
@@ -180,8 +178,7 @@ LayoutOverrideSource::LayoutOverrideSource(StringRef Filename) {
180
178
181
179
// Skip over this offset, the following comma, and any spaces.
182
180
LineStr = LineStr.substr (1 );
183
- while (!LineStr.empty () && isWhitespace (LineStr[0 ]))
184
- LineStr = LineStr.substr (1 );
181
+ LineStr = LineStr.drop_while (isWhitespace);
185
182
}
186
183
}
187
184
}
You can’t perform that action at this time.
0 commit comments