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:
parent
2c43eaa50c
commit
49ed168ced
2 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue