diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-06-19 13:29:11 -0700 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2017-06-20 04:28:05 +0000 |
commit | 8a4ea3f03807c4d75ef73609dae30cfcf427c3ea (patch) | |
tree | 70c0348d8d87a767b242bd35fae6d9f10bef959c /src/corelib/tools/qbytearray.h | |
parent | 7ad55ca65f42351e231f31f7a9253ae6eaf1ebb3 (diff) |
Move Q_REQUIRED_RESULT to its correct position
This commit complements commit 3dcc075f4a5efce348a6fa00cf5a0adef97b1089
for Qt 5.10.
Change-Id: I7814054a102a407d876ffffd14b6a16182f159e2
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
-rw-r--r-- | src/corelib/tools/qbytearray.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/tools/qbytearray.h b/src/corelib/tools/qbytearray.h index 144216a6ef..7c26351278 100644 --- a/src/corelib/tools/qbytearray.h +++ b/src/corelib/tools/qbytearray.h @@ -212,10 +212,10 @@ public: inline char operator[](uint i) const; inline QByteRef operator[](int i); inline QByteRef operator[](uint i); - char front() const Q_REQUIRED_RESULT { return at(0); } - inline QByteRef front() Q_REQUIRED_RESULT; - char back() const Q_REQUIRED_RESULT { return at(size() - 1); } - inline QByteRef back() Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT char front() const { return at(0); } + Q_REQUIRED_RESULT inline QByteRef front(); + Q_REQUIRED_RESULT char back() const { return at(size() - 1); } + Q_REQUIRED_RESULT inline QByteRef back(); int indexOf(char c, int from = 0) const; int indexOf(const char *c, int from = 0) const; |