summaryrefslogtreecommitdiff
path: root/Userland/Applications/FileManager/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/FileManager/main.cpp')
-rw-r--r--Userland/Applications/FileManager/main.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp
index b4fbeaed69..27326c9c5a 100644
--- a/Userland/Applications/FileManager/main.cpp
+++ b/Userland/Applications/FileManager/main.cpp
@@ -278,7 +278,7 @@ ErrorOr<int> run_in_desktop_mode()
window->set_has_alpha_channel(true);
auto desktop_widget = TRY(window->try_set_main_widget<FileManager::DesktopWidget>());
- TRY(desktop_widget->try_set_layout<GUI::VerticalBoxLayout>());
+ (void)TRY(desktop_widget->try_set_layout<GUI::VerticalBoxLayout>());
auto directory_view = TRY(desktop_widget->try_add<DirectoryView>(DirectoryView::Mode::Desktop));
directory_view->set_name("directory_view");
@@ -904,31 +904,31 @@ ErrorOr<int> run_in_windowed_mode(String initial_location, String entry_focused_
auto help_menu = TRY(window->try_add_menu("&Help"));
TRY(help_menu->try_add_action(GUI::CommonActions::make_about_action("File Manager", GUI::Icon::default_icon("app-file-manager"), window)));
- TRY(main_toolbar.try_add_action(go_back_action));
- TRY(main_toolbar.try_add_action(go_forward_action));
- TRY(main_toolbar.try_add_action(open_parent_directory_action));
- TRY(main_toolbar.try_add_action(go_home_action));
+ (void)TRY(main_toolbar.try_add_action(go_back_action));
+ (void)TRY(main_toolbar.try_add_action(go_forward_action));
+ (void)TRY(main_toolbar.try_add_action(open_parent_directory_action));
+ (void)TRY(main_toolbar.try_add_action(go_home_action));
TRY(main_toolbar.try_add_separator());
- TRY(main_toolbar.try_add_action(directory_view->open_terminal_action()));
+ (void)TRY(main_toolbar.try_add_action(directory_view->open_terminal_action()));
TRY(main_toolbar.try_add_separator());
- TRY(main_toolbar.try_add_action(mkdir_action));
- TRY(main_toolbar.try_add_action(touch_action));
+ (void)TRY(main_toolbar.try_add_action(mkdir_action));
+ (void)TRY(main_toolbar.try_add_action(touch_action));
TRY(main_toolbar.try_add_separator());
- TRY(main_toolbar.try_add_action(focus_dependent_delete_action));
- TRY(main_toolbar.try_add_action(directory_view->rename_action()));
+ (void)TRY(main_toolbar.try_add_action(focus_dependent_delete_action));
+ (void)TRY(main_toolbar.try_add_action(directory_view->rename_action()));
TRY(main_toolbar.try_add_separator());
- TRY(main_toolbar.try_add_action(cut_action));
- TRY(main_toolbar.try_add_action(copy_action));
- TRY(main_toolbar.try_add_action(paste_action));
+ (void)TRY(main_toolbar.try_add_action(cut_action));
+ (void)TRY(main_toolbar.try_add_action(copy_action));
+ (void)TRY(main_toolbar.try_add_action(paste_action));
TRY(main_toolbar.try_add_separator());
- TRY(main_toolbar.try_add_action(directory_view->view_as_icons_action()));
- TRY(main_toolbar.try_add_action(directory_view->view_as_table_action()));
- TRY(main_toolbar.try_add_action(directory_view->view_as_columns_action()));
+ (void)TRY(main_toolbar.try_add_action(directory_view->view_as_icons_action()));
+ (void)TRY(main_toolbar.try_add_action(directory_view->view_as_table_action()));
+ (void)TRY(main_toolbar.try_add_action(directory_view->view_as_columns_action()));
directory_view->on_path_change = [&](String const& new_path, bool can_read_in_path, bool can_write_in_path) {
auto icon = GUI::FileIconProvider::icon_for_path(new_path);