diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-28 08:33:56 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-28 09:08:05 +0100 |
commit | 7bb59b7a4a8b8804fa1eb5e631463da6a6cfdf84 (patch) | |
tree | f394fd7d7984e0c917975c1a8b43946946a35143 | |
parent | 5f4d9ef6df492bfd91fa7c48fb4d5f8c2afc40b2 (diff) | |
download | libquotient-7bb59b7a4a8b8804fa1eb5e631463da6a6cfdf84.tar.gz libquotient-7bb59b7a4a8b8804fa1eb5e631463da6a6cfdf84.zip |
Convert struct LoginFlows to namespace
Because that's what it really is.
-rw-r--r-- | lib/connection.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/connection.h b/lib/connection.h index 0713af16..45abb8ed 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -51,11 +51,11 @@ class LeaveRoomJob; using LoginFlow = GetLoginFlowsJob::LoginFlow; /// Predefined login flows -struct LoginFlows { - static inline const LoginFlow Password { "m.login.password" }; - static inline const LoginFlow SSO { "m.login.sso" }; - static inline const LoginFlow Token { "m.login.token" }; -}; +namespace LoginFlows { + inline const LoginFlow Password { "m.login.password" }; + inline const LoginFlow SSO { "m.login.sso" }; + inline const LoginFlow Token { "m.login.token" }; +} // To simplify comparisons of LoginFlows |