From 4cafbf7944bee5690bf6fe893631cee9ef64ee3d Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 10 Nov 2025 09:08:32 +0100 Subject: [PATCH] [client,sdl] sdl2 dialog auth: remove std::move --- client/SDL/SDL2/dialogs/sdl_dialogs.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/client/SDL/SDL2/dialogs/sdl_dialogs.cpp b/client/SDL/SDL2/dialogs/sdl_dialogs.cpp index 60e5083fc..aa65abfa1 100644 --- a/client/SDL/SDL2/dialogs/sdl_dialogs.cpp +++ b/client/SDL/SDL2/dialogs/sdl_dialogs.cpp @@ -549,27 +549,28 @@ BOOL sdl_message_dialog_show(const char* title, const char* message, Sint32 flag BOOL sdl_auth_dialog_show(const SDL_UserAuthArg* args) { - std::vector auth = { "Username: ", "Domain: ", - "Password: " }; - std::vector authPin = { "Device: ", "PIN: " }; - std::vector gw = { "GatewayUsername: ", "GatewayDomain: ", "GatewayPassword: " }; + const std::vector auth = { "Username: ", "Domain: ", + "Password: " }; + const std::vector authPin = { "Device: ", "PIN: " }; + const std::vector gw = { "GatewayUsername: ", "GatewayDomain: ", + "GatewayPassword: " }; std::vector prompt; Sint32 rc = -1; switch (args->result) { case AUTH_SMARTCARD_PIN: - prompt = std::move(authPin); + prompt = authPin; break; case AUTH_TLS: case AUTH_RDP: case AUTH_NLA: - prompt = std::move(auth); + prompt = auth; break; case GW_AUTH_HTTP: case GW_AUTH_RDG: case GW_AUTH_RPC: - prompt = std::move(gw); + prompt = gw; break; default: break;