mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:35:07 +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:
parent
92f8514a85
commit
d2024f04bd
7 changed files with 7 additions and 7 deletions
|
@ -649,7 +649,7 @@ bool FileSystemModel::fetch_thumbnail_for(Node const& node)
|
|||
|
||||
auto weak_this = make_weak_ptr();
|
||||
|
||||
Threading::BackgroundAction<ErrorOr<NonnullRefPtr<Gfx::Bitmap>>>::construct(
|
||||
(void)Threading::BackgroundAction<ErrorOr<NonnullRefPtr<Gfx::Bitmap>>>::construct(
|
||||
[path](auto&) {
|
||||
return render_thumbnail(path);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue