diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-06-21 18:10:33 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-06-21 18:10:33 +0200 |
| commit | d9c8cebfbe624e1f97905a8580f11bc88c18f21c (patch) | |
| tree | f5375ac3d82a9f9ea791555ade5026ac6dbec5a2 /src | |
| parent | 97bab9abbd85d8928330b3e1db9ebb31fe83f226 (diff) | |
Remove trailing whitespace
no code changes
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_MacOS_Sys_Menu_Bar.mm | 4 | ||||
| -rw-r--r-- | src/Fl_Native_File_Chooser_GTK.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_Native_File_Chooser_MAC.mm | 2 | ||||
| -rw-r--r-- | src/drivers/PostScript/Fl_PostScript.cxx | 4 | ||||
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/Fl_MacOS_Sys_Menu_Bar.mm b/src/Fl_MacOS_Sys_Menu_Bar.mm index de7e7b00c..a7c5e2f20 100644 --- a/src/Fl_MacOS_Sys_Menu_Bar.mm +++ b/src/Fl_MacOS_Sys_Menu_Bar.mm @@ -737,10 +737,10 @@ void Fl_MacOS_Sys_Menu_Bar_Driver::play_menu(const Fl_Menu_Item *item) { free(label); AXUIElementRef appElement = AXUIElementCreateApplication(getpid()); AXUIElementRef menu_bar = NULL; - AXError error = AXUIElementCopyAttributeValue(appElement, kAXMenuBarAttribute, + AXError error = AXUIElementCopyAttributeValue(appElement, kAXMenuBarAttribute, (CFTypeRef *)&menu_bar); if (!error) error = AXUIElementGetAttributeValueCount(menu_bar, kAXChildrenAttribute, &count); - if (!error) error = AXUIElementCopyAttributeValues(menu_bar, kAXChildrenAttribute, 0, count, + if (!error) error = AXUIElementCopyAttributeValues(menu_bar, kAXChildrenAttribute, 0, count, &children); if (!error) { NSEnumerator *enumerator = [(NSArray*)children objectEnumerator]; diff --git a/src/Fl_Native_File_Chooser_GTK.cxx b/src/Fl_Native_File_Chooser_GTK.cxx index 49b99f623..e0826e3e2 100644 --- a/src/Fl_Native_File_Chooser_GTK.cxx +++ b/src/Fl_Native_File_Chooser_GTK.cxx @@ -972,6 +972,6 @@ Fl_Native_File_Chooser::Fl_Native_File_Chooser(int val) { } } #endif // HAVE_DLSYM && HAVE_DLFCN_H - + if (!platform_fnfc) platform_fnfc = new Fl_Native_File_Chooser_FLTK_Driver(val); } diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm index 5c424cb24..002e0a404 100644 --- a/src/Fl_Native_File_Chooser_MAC.mm +++ b/src/Fl_Native_File_Chooser_MAC.mm @@ -540,7 +540,7 @@ static char *prepareMacFilter(int count, const char *filter, char **patterns) { else #endif if (fl_mac_os_version >= 100900) { - [dialog performSelector:@selector(setAllowedFileTypes:) + [dialog performSelector:@selector(setAllowedFileTypes:) withObject:[NSArray arrayWithObject:ext]]; } } diff --git a/src/drivers/PostScript/Fl_PostScript.cxx b/src/drivers/PostScript/Fl_PostScript.cxx index 3b81789d0..a1f511bef 100644 --- a/src/drivers/PostScript/Fl_PostScript.cxx +++ b/src/drivers/PostScript/Fl_PostScript.cxx @@ -1645,7 +1645,7 @@ static int update_format_layout(int rank, Fl_Paged_Device::Page_Layout layout, }); FL_INLINE_CALLBACK_2( modal, Fl_Window*, win, modal, Fl_Check_Button*, check_but, default_size, - { + { *((bool*)check_but->user_data()) = check_but->value(); win->hide(); } ); @@ -1676,7 +1676,7 @@ static int update_format_layout(int rank, Fl_Paged_Device::Page_Layout layout, int Fl_PDF_Pango_File_Surface::begin_job(const char *defaultname, char **perr_message) { static Page_Layout layout = PORTRAIT; - + Fl_Preferences print_prefs(Fl_Preferences::CORE_USER, "fltk.org", "printers"); char *pref_format; print_prefs.get("PDF/page_size", pref_format, "A4"); diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index 139ba2ea9..271895114 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1519,7 +1519,7 @@ void Fl_Wayland_Window_Driver::makeWindow() if (top_dr->xdg_toplevel()) xdg_toplevel_set_parent(new_window->xdg_toplevel, top_dr->xdg_toplevel()); } - if (scr_driver->seat->gtk_shell && pWindow->modal() && + if (scr_driver->seat->gtk_shell && pWindow->modal() && (new_window->kind == DECORATED || new_window->kind == UNFRAMED)) { // Useful to position modal windows above their parent with "gnome-shell --version" ≤ 45.2, // useless but harmless with "gnome-shell --version" ≥ 46.0. |
