diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-07-15 09:27:18 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-08-09 13:40:39 +0000 |
commit | e417cefe6bcf3ae15ca194a9e8f6af13456630e5 (patch) | |
tree | 3fcaf6136cad59d58dd151863ca945e162ee4456 /src/corelib/global | |
parent | 8a9383120a25fa87a871f6d47eec667d4f3a22fc (diff) |
Doc: Fix return type of QLEInteger/QBEInteger post-in/decrement ops
Those operators return a value, not a reference.
Fixes: QTBUG-104940
Change-Id: I117892f12d20c6bf32a12f37c1bdfec1817614c6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit d336cfba8ad740dc812b8987bc04fb9f6da80666)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qendian.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h index 3abd6a000c..f940f1d5d1 100644 --- a/src/corelib/global/qendian.h +++ b/src/corelib/global/qendian.h @@ -372,8 +372,8 @@ public: QLEInteger &operator ^=(T i); QLEInteger &operator ++(); QLEInteger &operator --(); - QLEInteger &operator ++(int); - QLEInteger &operator --(int); + QLEInteger operator ++(int); + QLEInteger operator --(int); static Q_DECL_CONSTEXPR QLEInteger max(); static Q_DECL_CONSTEXPR QLEInteger min(); @@ -399,8 +399,8 @@ public: QBEInteger &operator ^=(T i); QBEInteger &operator ++(); QBEInteger &operator --(); - QBEInteger &operator ++(int); - QBEInteger &operator --(int); + QBEInteger operator ++(int); + QBEInteger operator --(int); static Q_DECL_CONSTEXPR QBEInteger max(); static Q_DECL_CONSTEXPR QBEInteger min(); |