mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 13:55:06 +00:00
LibGUI: Cast unused smart-pointer return values to void
This commit is contained in:
parent
907feb84a0
commit
d95e50643e
4 changed files with 5 additions and 5 deletions
|
@ -118,7 +118,7 @@ ErrorOr<void> Toolbar::try_add_separator()
|
|||
|
||||
auto item = TRY(adopt_nonnull_own_or_enomem(new (nothrow) Item));
|
||||
item->type = Item::Type::Separator;
|
||||
TRY(try_add<SeparatorWidget>(m_orientation == Gfx::Orientation::Horizontal ? Gfx::Orientation::Vertical : Gfx::Orientation::Horizontal));
|
||||
(void)TRY(try_add<SeparatorWidget>(m_orientation == Gfx::Orientation::Horizontal ? Gfx::Orientation::Vertical : Gfx::Orientation::Horizontal));
|
||||
m_items.unchecked_append(move(item));
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue