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.
This commit is contained in:
Vadim Zeitlin
2021-04-25 18:50:30 +02:00
parent ffc3168f6f
commit c85267184e

View File

@@ -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,