diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-22 02:15:51 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-22 02:16:34 +0200 |
commit | 04db5b6d853f3084660612c1d2db91d54ec63691 (patch) | |
tree | 4c4f9dd426b59280038a8c7a1ff246e405d2a9e2 /lib/quotient_common.h | |
parent | b7f1c721fbe5cf7d56b041c0249b9d71600a24c4 (diff) | |
download | libquotient-04db5b6d853f3084660612c1d2db91d54ec63691.tar.gz libquotient-04db5b6d853f3084660612c1d2db91d54ec63691.zip |
Use fixed width types for enums
Diffstat (limited to 'lib/quotient_common.h')
-rw-r--r-- | lib/quotient_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/quotient_common.h b/lib/quotient_common.h index e087e7d3..233bcaa1 100644 --- a/lib/quotient_common.h +++ b/lib/quotient_common.h @@ -51,7 +51,7 @@ Q_NAMESPACE_EXPORT(QUOTIENT_API) //! These are used for member events. The names here are case-insensitively //! equal to state names used on the wire. //! \sa MemberEventContent, RoomMemberEvent -enum class Membership : unsigned int { +enum class Membership : uint16_t { // Specific power-of-2 values (1,2,4,...) are important here as syncdata.cpp // depends on that, as well as Join being the first in line Invalid = 0x0, @@ -97,7 +97,7 @@ Q_ENUM_NS(RunningPolicy) //! \brief The result of URI resolution using UriResolver //! \sa UriResolver -enum UriResolveResult : short { +enum UriResolveResult : int8_t { StillResolving = -1, UriResolved = 0, CouldNotResolve, |