Commit e86c1e46 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

textinputv2: readability

Remove unnecessary casts
parent 762f4648
Pipeline #60405 passed with stage
in 5 minutes and 26 seconds
......@@ -284,7 +284,7 @@ TextInputV2InterfacePrivate::TextInputV2InterfacePrivate(SeatInterface *seat, Te
void TextInputV2InterfacePrivate::zwp_text_input_v2_enable(Resource *resource, wl_resource *s)
{
Q_UNUSED(resource)
surface = QPointer<SurfaceInterface>(SurfaceInterface::get(s));
surface = SurfaceInterface::get(s);
enabled = true;
emit q->enabledChanged();
}
......@@ -316,7 +316,7 @@ void TextInputV2InterfacePrivate::zwp_text_input_v2_hide_input_panel(Resource *r
void TextInputV2InterfacePrivate::zwp_text_input_v2_set_surrounding_text(Resource *resource, const QString &text, int32_t cursor, int32_t anchor)
{
Q_UNUSED(resource)
surroundingText = QString(text);
surroundingText = text;
surroundingTextCursorPosition = cursor;
surroundingTextSelectionAnchor = anchor;
emit q->surroundingTextChanged();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment