diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-04-18 16:51:28 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-06-03 00:37:59 +0000 |
commit | d77587b95f490ba9be372acfb81a1659f2844b2f (patch) | |
tree | 268da1400449c274337f7911f963d79c01ff65f6 | |
parent | af6655885cf19de69d5f57ac9daee9f6b9935a70 (diff) |
Move Q_REQUIRED_RESULT to the beginning of the declaration
That's the correct place and works with C++11 attributes.
Change-Id: I7814054a102a407d876ffffd14b6a2f74423c222
Reviewed-by: Sérgio Martins <sergio.martins@kdab.com>
-rw-r--r-- | src/qml/compiler/qqmlpropertyvalidator_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qqmlpropertyvalidator_p.h b/src/qml/compiler/qqmlpropertyvalidator_p.h index d0bd314461..e37b8141f4 100644 --- a/src/qml/compiler/qqmlpropertyvalidator_p.h +++ b/src/qml/compiler/qqmlpropertyvalidator_p.h @@ -69,8 +69,8 @@ private: bool canCoerce(int to, QQmlPropertyCache *fromMo) const; - QVector<QQmlCompileError> recordError(const QV4::CompiledData::Location &location, const QString &description) const Q_REQUIRED_RESULT; - QVector<QQmlCompileError> recordError(const QQmlCompileError &error) const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QVector<QQmlCompileError> recordError(const QV4::CompiledData::Location &location, const QString &description) const; + Q_REQUIRED_RESULT QVector<QQmlCompileError> recordError(const QQmlCompileError &error) const; QString stringAt(int index) const { return qmlUnit->stringAt(index); } QQmlEnginePrivate *enginePrivate; |