mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +00:00
Userland: Cast unused BackgroundAction::construct() results to void
User code does not need to keep this alive, so casting to void is safe. But maybe a bit weird.
This commit is contained in:
committed by
Andreas Kling
parent
92f8514a85
commit
d2024f04bd
@@ -30,7 +30,7 @@ bool MonitorWidget::set_wallpaper(String path)
|
||||
if (!is_different_to_current_wallpaper_path(path))
|
||||
return false;
|
||||
|
||||
Threading::BackgroundAction<ErrorOr<NonnullRefPtr<Gfx::Bitmap>>>::construct(
|
||||
(void)Threading::BackgroundAction<ErrorOr<NonnullRefPtr<Gfx::Bitmap>>>::construct(
|
||||
[path](auto&) -> ErrorOr<NonnullRefPtr<Gfx::Bitmap>> {
|
||||
if (path.is_empty())
|
||||
return Error::from_errno(ENOENT);
|
||||
|
||||
Reference in New Issue
Block a user