aboutsummaryrefslogtreecommitdiff
path: root/lib/identity/definitions/sid.h
diff options
context:
space:
mode:
authorMarc Deop <marc@marcdeop.com>2019-03-02 12:26:57 +0100
committerMarc Deop <marc@marcdeop.com>2019-03-02 12:26:57 +0100
commitaacc4bcb4a487871daae6717f77605aaba444341 (patch)
tree4f50b6874821667ccb6b91c017e5d041e3846112 /lib/identity/definitions/sid.h
parentc971b924cd62822ed6fb1a0291c483ae73a3ecda (diff)
downloadlibquotient-aacc4bcb4a487871daae6717f77605aaba444341.tar.gz
libquotient-aacc4bcb4a487871daae6717f77605aaba444341.zip
style: apply .clang-format to all .cpp and .h files
Diffstat (limited to 'lib/identity/definitions/sid.h')
-rw-r--r--lib/identity/definitions/sid.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/identity/definitions/sid.h b/lib/identity/definitions/sid.h
index ac8c4130..85462b46 100644
--- a/lib/identity/definitions/sid.h
+++ b/lib/identity/definitions/sid.h
@@ -6,21 +6,17 @@
#include "converters.h"
-
-namespace QMatrixClient
-{
+namespace QMatrixClient {
// Data structures
- struct Sid
- {
- /// The session ID. Session IDs are opaque strings generated by the identity
- /// server. They must consist entirely of the characters
- /// ``[0-9a-zA-Z.=_-]``. Their length must not exceed 255 characters and they
- /// must not be empty.
+ struct Sid {
+ /// The session ID. Session IDs are opaque strings generated by the
+ /// identity server. They must consist entirely of the characters
+ /// ``[0-9a-zA-Z.=_-]``. Their length must not exceed 255 characters and
+ /// they must not be empty.
QString sid;
};
- template <> struct JsonObjectConverter<Sid>
- {
+ template <> struct JsonObjectConverter<Sid> {
static void dumpTo(QJsonObject& jo, const Sid& pod);
static void fillFrom(const QJsonObject& jo, Sid& pod);
};