1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

Userland: Use File::lines() range-based for loop where appropriate

This commit is contained in:
Sahan Fernando 2021-12-08 10:56:50 +11:00 committed by Ali Mohammad Pur
parent 2c43eaa50c
commit 49ed168ced
2 changed files with 2 additions and 5 deletions

View file

@ -228,8 +228,7 @@ Result<Vector<Color>, String> PaletteWidget::load_palette_file(Core::File& file)
{
Vector<Color> palette;
while (file.can_read_line()) {
auto line = file.read_line();
for (auto line : file.lines()) {
if (line.is_whitespace())
continue;