-modernize-raw-string-literal,
-modernize-redundant-void-arg,
-modernize-use-auto,
- -modernize-use-nullptr,
-modernize-use-trailing-return-type,
-modernize-use-using,
-performance-no-int-to-ptr,
"map_centering", nullptr, TRUE, nullptr, pgd);
generic_dialog_add_message(gd, GQ_ICON_DIALOG_INFO,
"Map Centering", message->str, TRUE);
- generic_dialog_add_button(gd, GQ_ICON_OK, "OK", NULL, TRUE);
+ generic_dialog_add_button(gd, GQ_ICON_OK, "OK", nullptr, TRUE);
gtk_widget_show(gd->dialog);
generic_dialog_add_message(gd, GQ_ICON_DIALOG_INFO,
"Sort Manager Operations", _("Additional operations utilising plugins\nmay be included by setting:\n\nX-Geeqie-Filter=true\n\nin the plugin file."), TRUE);
generic_dialog_add_button(gd, GQ_ICON_HELP, _("Help"), bar_filter_help_cb, TRUE);
- generic_dialog_add_button(gd, GQ_ICON_OK, "OK", NULL, TRUE);
+ generic_dialog_add_button(gd, GQ_ICON_OK, "OK", nullptr, TRUE);
gtk_widget_show(gd->dialog);
}
cache_manager_standard_clean_stop_cb, FALSE);
gtk_widget_set_sensitive(cd->button_stop, FALSE);
- generic_dialog_add_message(cd->gd, icon_name, msg, NULL, FALSE);
+ generic_dialog_add_message(cd->gd, icon_name, msg, nullptr, FALSE);
cd->progress = gtk_progress_bar_new();
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(cd->progress), _("click start to begin"));
title = _("Save collection");
- gdlg = file_util_gen_dlg(title, "dlg_collection_save", NULL, FALSE, collection_save_or_load_dialog_close_cb, cd);
+ gdlg = file_util_gen_dlg(title, "dlg_collection_save", nullptr, FALSE, collection_save_or_load_dialog_close_cb, cd);
generic_dialog_add_message(GENERIC_DIALOG(gdlg), nullptr, title, _("Existing collections:"), FALSE);
generic_dialog_add_button(gdlg, GQ_ICON_SAVE, _("Save"), collection_save_cb, TRUE);
work = work->next;
}
- return NULL;
+ return nullptr;
}
static DupeItem *dupe_item_find_fd_unused(DupeWindow *dw, FileData *fd)
work = work->next;
}
- return NULL;
+ return nullptr;
}
static DupeItem *dupe_item_find_path_unused(DupeWindow *dw, const gchar *path)
{
EditorDescription *editor = static_cast<EditorDescription *>(g_hash_table_lookup(editors, key));
- if (!editor) return NULL;
+ if (!editor) return nullptr;
return editor->name;
}
data = WebPDecodeRGB(buf, count, &width, &height);
}
- ld->pixbuf = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, features.has_alpha, 8, width, height, width * (features.has_alpha ? 4 : 3), free_buffer, NULL);
+ ld->pixbuf = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, features.has_alpha, 8, width, height, width * (features.has_alpha ? 4 : 3), free_buffer, nullptr);
ld->area_updated_cb(loader, 0, 0, width, height, ld->data);
funcs->loader_new = image_loader_webp_new;
funcs->set_size = image_loader_webp_set_size;
funcs->load = image_loader_webp_load;
- funcs->write = NULL;
+ funcs->write = nullptr;
funcs->get_pixbuf = image_loader_webp_get_pixbuf;
funcs->close = image_loader_webp_close;
funcs->abort = image_loader_webp_abort;
layout_valid(&lw);
}
- defined_mouse_buttons(NULL, event, lw);
+ defined_mouse_buttons(nullptr, event, lw);
}
static void image_drag_cb(PixbufRenderer *pr, GdkEventMotion *event, gpointer data)
#pragma GCC diagnostic ignored "-Wunused-function"
const gchar *layout_image_get_name_unused(LayoutWindow *lw)
{
- if (!layout_valid(&lw)) return NULL;
+ if (!layout_valid(&lw)) return nullptr;
return image_get_name(lw->image);
}
void open_with_response_cb(GtkDialog *, gint response_id, gpointer data)
{
- GError *error = NULL;
+ GError *error = nullptr;
auto open_with_data = static_cast<OpenWithData *>(data);
if (response_id == GTK_RESPONSE_OK)
static void open_with_application_activated_cb(GtkAppChooserWidget *, GAppInfo *application, gpointer data)
{
- GError *error = NULL;
+ GError *error = nullptr;
auto open_with_data = static_cast<OpenWithData *>(data);
g_app_info_launch(application, open_with_data->g_file_list, nullptr, &error);
g_free(msg);
msg = g_strdup_printf(_("Quit %s"), GQ_APPNAME);
- message = g_string_new(NULL);
+ message = g_string_new(nullptr);
if (collection_window_modified_exists())
{
sigbus_action.sa_sigaction = sigbus_handler_cb_unused;
sigbus_action.sa_flags = SA_SIGINFO;
- sigaction(SIGBUS, &sigbus_action, NULL);
+ sigaction(SIGBUS, &sigbus_action, nullptr);
#endif
}
#pragma GCC diagnostic pop
gboolean pixbuf_renderer_get_virtual_rect_unused(PixbufRenderer *pr, GdkRectangle *rect)
{
g_return_val_if_fail(IS_PIXBUF_RENDERER(pr), FALSE);
- g_return_val_if_fail(rect != NULL, FALSE);
+ g_return_val_if_fail(rect != nullptr, FALSE);
if ((!pr->pixbuf && !pr->source_tiles_enabled))
{
#pragma GCC diagnostic ignored "-Wunused-function"
gboolean pixbuf_to_file_as_jpg_unused(GdkPixbuf *pixbuf, const gchar *filename, gint quality)
{
- GError *error = NULL;
+ GError *error = nullptr;
gchar *qbuf;
gboolean ret;
const gchar *name;
const gchar *ext;
- if (!path) return NULL;
+ if (!path) return nullptr;
name = filename_from_path(path);
- if (!name) return NULL;
+ if (!name) return nullptr;
ext = registered_extension_from_path(name);
if (!ext)
{
- unique = unique_filename(path, NULL, "_", TRUE);
+ unique = unique_filename(path, nullptr, "_", TRUE);
}
else
{
if (pref_list_get(group, key, PREF_LIST_MARKER_DOUBLE, &text) && text)
{
- *result = g_ascii_strtod(text, NULL);
+ *result = g_ascii_strtod(text, nullptr);
return TRUE;
}
#pragma GCC diagnostic ignored "-Wunused-function"
GtkWidget *path_selection_new_unused(const gchar *path, GtkWidget *entry)
{
- return path_selection_new_with_files(entry, path, NULL, NULL);
+ return path_selection_new_with_files(entry, path, nullptr, nullptr);
}
void path_selection_sync_to_entry_unused(GtkWidget *entry)
#pragma GCC diagnostic ignored "-Wunused-function"
void file_util_start_filter_from_file_unused(const gchar *key, FileData *fd, const gchar *dest_path, GtkWidget *parent)
{
- file_util_start_editor_full(key, fd, NULL, dest_path, NULL, parent, UTILITY_PHASE_ENTERING);
+ file_util_start_editor_full(key, fd, nullptr, dest_path, nullptr, parent, UTILITY_PHASE_ENTERING);
}
#pragma GCC diagnostic pop
#pragma GCC diagnostic ignored "-Wunused-function"
const gchar *vd_row_get_path_unused(ViewDir *vd, gint row)
{
- const gchar *ret = NULL;
+ const gchar *ret = nullptr;
switch (vd->type)
{