From 71f46efa773bbbc02e9c75dee8365499bdd887f0 Mon Sep 17 00:00:00 2001 From: Melvin Keskin Date: Thu, 27 Jan 2022 16:51:23 +0000 Subject: doc: OmemoData: Replace '2^32-1' with std::numeric_limits --- src/base/QXmppOmemoData.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/base/QXmppOmemoData.cpp') 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::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::max(). /// /// \param id ID of the signed public pre key /// @@ -367,7 +369,8 @@ QHash 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::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::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::max(). /// /// \param id sender's device ID /// -- cgit v1.2.3