From 88db280f2a98722cc7f1be8135c01a949d55a924 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 14 Mar 2023 17:57:37 +0200 Subject: [PATCH] Fix -Wdeprecated-enum-enum-conversion Even though zwp_text_input_v2_content_hint and QtWaylandServer::zwp_text_input_v2::content_hint represent the same values, they are not the same from the compiler perspective. --- src/wayland/textinput_v2_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/textinput_v2_interface.cpp b/src/wayland/textinput_v2_interface.cpp index deddf1bda3..6315153c32 100644 --- a/src/wayland/textinput_v2_interface.cpp +++ b/src/wayland/textinput_v2_interface.cpp @@ -18,7 +18,7 @@ const quint32 s_version = 1; // helpers TextInputContentHints convertContentHint(uint32_t hint) { - const auto hints = zwp_text_input_v2_content_hint(hint); + const auto hints = QtWaylandServer::zwp_text_input_v2::content_hint(hint); TextInputContentHints ret = TextInputContentHint::None; if (hints & QtWaylandServer::zwp_text_input_v2::content_hint_auto_completion) {