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:
@@ -317,7 +317,7 @@ selection_handler( GtkWidget *WXUNUSED(widget),
|
|||||||
// use UTF8_STRING format if requested in Unicode build but just plain
|
// use UTF8_STRING format if requested in Unicode build but just plain
|
||||||
// STRING one in ANSI or if explicitly asked in Unicode
|
// STRING one in ANSI or if explicitly asked in Unicode
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
if (format == wxDataFormat(wxDF_UNICODETEXT))
|
if (format == wxDF_UNICODETEXT)
|
||||||
{
|
{
|
||||||
gtk_selection_data_set_text(
|
gtk_selection_data_set_text(
|
||||||
selection_data,
|
selection_data,
|
||||||
|
Reference in New Issue
Block a user