From c85267184ed537be29d6ea53a8b249f793f212ca Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 25 Apr 2021 18:50:30 +0200 Subject: [PATCH] Simplify wxDataFormat comparison and avoid clang warning Comparing wxDataFormat directly with wxDF_XXX is supposed to work too and doing it like this avoids -Wambiguous-reversed-operator from clang 12. --- src/gtk/clipbrd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/clipbrd.cpp b/src/gtk/clipbrd.cpp index 8cd7b1644d..07fcf02ce3 100644 --- a/src/gtk/clipbrd.cpp +++ b/src/gtk/clipbrd.cpp @@ -317,7 +317,7 @@ selection_handler( GtkWidget *WXUNUSED(widget), // use UTF8_STRING format if requested in Unicode build but just plain // STRING one in ANSI or if explicitly asked in Unicode #if wxUSE_UNICODE - if (format == wxDataFormat(wxDF_UNICODETEXT)) + if (format == wxDF_UNICODETEXT) { gtk_selection_data_set_text( selection_data,