From 8ecbb39dc6303fcf3ae36ad033d7e90ea29b9003 Mon Sep 17 00:00:00 2001 From: Loren Burkholder <55629213+LorenDB@users.noreply.github.com> Date: Mon, 3 Oct 2022 17:57:30 -0400 Subject: cppcheck stuff (#1200) * cppcheck stuff * Update src/ui/RoomSettings.cpp Co-authored-by: DeepBlueV7.X * Update src/ui/RoomSettings.cpp Co-authored-by: DeepBlueV7.X * Fix linting Co-authored-by: DeepBlueV7.X --- src/ui/UIA.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui/UIA.cpp') diff --git a/src/ui/UIA.cpp b/src/ui/UIA.cpp index 93fd6c94..d67d1ba9 100644 --- a/src/ui/UIA.cpp +++ b/src/ui/UIA.cpp @@ -164,7 +164,7 @@ UIA::genericHandler(QString context) } void -UIA::continuePassword(QString password) +UIA::continuePassword(const QString &password) { mtx::user_interactive::auth::Password p{}; p.identifier_type = mtx::user_interactive::auth::Password::UserId; @@ -176,7 +176,7 @@ UIA::continuePassword(QString password) } void -UIA::continueEmail(QString email) +UIA::continueEmail(const QString &email) { mtx::requests::RequestEmailToken r{}; r.client_secret = this->client_secret = mtx::client::utils::random_token(128, false); @@ -207,7 +207,7 @@ UIA::continueEmail(QString email) }); } void -UIA::continuePhoneNumber(QString countryCode, QString phoneNumber) +UIA::continuePhoneNumber(const QString &countryCode, const QString &phoneNumber) { mtx::requests::RequestMSISDNToken r{}; r.client_secret = this->client_secret = mtx::client::utils::random_token(128, false); @@ -257,7 +257,7 @@ UIA::continue3pidReceived() } void -UIA::submit3pidToken(QString token) +UIA::submit3pidToken(const QString &token) { mtx::requests::IdentitySubmitToken t{}; t.client_secret = this->client_secret; -- cgit 1.5.1