summary refs log tree commit diff
path: root/src/encryption/DeviceVerificationFlow.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 04:28:08 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 04:52:52 +0100
commitd8ead9573b6fd45e386d54b9aaec4e1c335b10ec (patch)
tree514d00ee26e67fc8bfeff403858e7d4ef276e6e3 /src/encryption/DeviceVerificationFlow.cpp
parentuse more literals (diff)
downloadnheko-d8ead9573b6fd45e386d54b9aaec4e1c335b10ec.tar.xz
Reduce allocations using QStringLiteral
Diffstat (limited to 'src/encryption/DeviceVerificationFlow.cpp')
-rw-r--r--src/encryption/DeviceVerificationFlow.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/encryption/DeviceVerificationFlow.cpp b/src/encryption/DeviceVerificationFlow.cpp

index 13867097..05484636 100644 --- a/src/encryption/DeviceVerificationFlow.cpp +++ b/src/encryption/DeviceVerificationFlow.cpp
@@ -429,23 +429,23 @@ DeviceVerificationFlow::state() { switch (state_) { case PromptStartVerification: - return "PromptStartVerification"; + return QStringLiteral("PromptStartVerification"); case CompareEmoji: - return "CompareEmoji"; + return QStringLiteral("CompareEmoji"); case CompareNumber: - return "CompareNumber"; + return QStringLiteral("CompareNumber"); case WaitingForKeys: - return "WaitingForKeys"; + return QStringLiteral("WaitingForKeys"); case WaitingForOtherToAccept: - return "WaitingForOtherToAccept"; + return QStringLiteral("WaitingForOtherToAccept"); case WaitingForMac: - return "WaitingForMac"; + return QStringLiteral("WaitingForMac"); case Success: - return "Success"; + return QStringLiteral("Success"); case Failed: - return "Failed"; + return QStringLiteral("Failed"); default: - return ""; + return QString(); } }