summary refs log tree commit diff
path: root/src/encryption/DeviceVerificationFlow.h
diff options
context:
space:
mode:
authorLoren Burkholder <55629213+LorenDB@users.noreply.github.com>2022-10-03 17:57:30 -0400
committerGitHub <noreply@github.com>2022-10-03 21:57:30 +0000
commit8ecbb39dc6303fcf3ae36ad033d7e90ea29b9003 (patch)
treeccbf44824e2a038254ce77ae3890d2d6d86b0a94 /src/encryption/DeviceVerificationFlow.h
parentMerge pull request #1202 from Nheko-Reborn/grammar (diff)
downloadnheko-8ecbb39dc6303fcf3ae36ad033d7e90ea29b9003.tar.xz
cppcheck stuff (#1200)
* cppcheck stuff

* Update src/ui/RoomSettings.cpp

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>

* Update src/ui/RoomSettings.cpp

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>

* Fix linting

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
Diffstat (limited to 'src/encryption/DeviceVerificationFlow.h')
-rw-r--r--src/encryption/DeviceVerificationFlow.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/encryption/DeviceVerificationFlow.h b/src/encryption/DeviceVerificationFlow.h

index a4dce236..afaddb37 100644 --- a/src/encryption/DeviceVerificationFlow.h +++ b/src/encryption/DeviceVerificationFlow.h
@@ -110,22 +110,26 @@ public: NewInRoomVerification(QObject *parent_, TimelineModel *timelineModel_, const mtx::events::msg::KeyVerificationRequest &msg, - QString other_user_, - QString event_id_); + const QString &other_user_, + const QString &event_id_); static QSharedPointer<DeviceVerificationFlow> NewToDeviceVerification(QObject *parent_, const mtx::events::msg::KeyVerificationRequest &msg, - QString other_user_, - QString txn_id_); + const QString &other_user_, + const QString &txn_id_); static QSharedPointer<DeviceVerificationFlow> NewToDeviceVerification(QObject *parent_, const mtx::events::msg::KeyVerificationStart &msg, - QString other_user_, - QString txn_id_); + const QString &other_user_, + const QString &txn_id_); static QSharedPointer<DeviceVerificationFlow> - InitiateUserVerification(QObject *parent_, TimelineModel *timelineModel_, QString userid); + InitiateUserVerification(QObject *parent_, + TimelineModel *timelineModel_, + const QString &userid); static QSharedPointer<DeviceVerificationFlow> - InitiateDeviceVerification(QObject *parent, QString userid, std::vector<QString> devices); + InitiateDeviceVerification(QObject *parent, + const QString &userid, + const std::vector<QString> &devices); // getters QString state(); @@ -137,7 +141,7 @@ public: QString transactionId() { return QString::fromStdString(this->transaction_id); } // setters void setDeviceId(QString deviceID); - void setEventId(std::string event_id); + void setEventId(const std::string &event_id); bool isDeviceVerification() const { return this->type == DeviceVerificationFlow::Type::ToDevice; @@ -164,8 +168,8 @@ private: DeviceVerificationFlow(QObject *, DeviceVerificationFlow::Type flow_type, TimelineModel *model, - QString userID, - std::vector<QString> deviceIds_); + const QString &userID, + const std::vector<QString> &deviceIds_); void setState(State state) { if (state != state_) {