diff options
| author | Melvin Keskin <melvo@olomono.de> | 2022-01-27 16:51:23 +0000 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-04-07 19:33:45 +0200 |
| commit | 71f46efa773bbbc02e9c75dee8365499bdd887f0 (patch) | |
| tree | c4f1031f316e372386515434a766b07a13b0220b /src/base | |
| parent | e59434b9085d90628352897c3dfc287766996797 (diff) | |
| download | qxmpp-71f46efa773bbbc02e9c75dee8365499bdd887f0.tar.gz | |
doc: OmemoData: Replace '2^32-1' with std::numeric_limits
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/QXmppOmemoData.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/base/QXmppOmemoData.cpp b/src/base/QXmppOmemoData.cpp index 7897731d..ba48b016 100644 --- a/src/base/QXmppOmemoData.cpp +++ b/src/base/QXmppOmemoData.cpp @@ -81,7 +81,8 @@ uint32_t QXmppOmemoDeviceElement::id() const /// /// Sets the ID of this device element. /// -/// A valid ID must be at least 1 and at most 2^32-1. +/// The ID must be at least 1 and at most +/// \c std::numeric_limits<int32_t>::max(). /// /// \param id this device element's ID /// @@ -321,7 +322,8 @@ uint32_t QXmppOmemoDeviceBundle::signedPublicPreKeyId() const /// /// Sets the ID of the public pre key that is signed. /// -/// A valid ID must be at least 1 and at most 2^32-1. +/// The ID must be at least 1 and at most +/// \c std::numeric_limits<int32_t>::max(). /// /// \param id ID of the signed public pre key /// @@ -367,7 +369,8 @@ QHash<uint32_t, QByteArray> QXmppOmemoDeviceBundle::publicPreKeys() const /// /// Adds a public pre key. /// -/// The ID must be at least 1 and at most 2^32-1. +/// The ID must be at least 1 and at most +/// \c std::numeric_limits<int32_t>::max(). /// /// \param id ID of the public pre key /// \param key public pre key @@ -510,7 +513,8 @@ uint32_t QXmppOmemoEnvelope::recipientDeviceId() const /// /// Sets the ID of the recipient's device. /// -/// A valid ID must be at least 1 and at most 2^32-1. +/// The ID must be at least 1 and at most +/// \c std::numeric_limits<int32_t>::max(). /// /// \param id recipient's device ID /// @@ -662,7 +666,8 @@ uint32_t QXmppOmemoElement::senderDeviceId() const /// /// Sets the ID of the sender's device. /// -/// A valid ID must be at least 1 and at most 2^32-1. +/// The ID must be at least 1 and at most +/// \c std::numeric_limits<int32_t>::max(). /// /// \param id sender's device ID /// |
