diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2012-05-23 16:35:07 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-25 21:49:35 +0200 |
commit | ad7d953963a1cf0d3a082eb374c6a6cd229062b4 (patch) | |
tree | c6dbc7e3809462424f7dd7c83903730166712af2 | |
parent | 10da6417ee49ba03e9c524d84daf77c576f70857 (diff) |
Declare typeinfo-s for QLatin1String, QStringRef, and QCharRef
Change-Id: I05e0f866c632f2a7e966e6bae9c73eeb77d99217
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | src/corelib/tools/qstring.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/tools/qstring.h b/src/corelib/tools/qstring.h index 34e3dbde4f..47ac45ac06 100644 --- a/src/corelib/tools/qstring.h +++ b/src/corelib/tools/qstring.h @@ -114,6 +114,7 @@ private: int m_size; const char *m_data; }; +Q_DECLARE_TYPEINFO(QLatin1String, Q_MOVABLE_TYPE); // Qt 4.x compatibility typedef QLatin1String QLatin1Literal; @@ -910,6 +911,7 @@ public: ushort& unicode() { return s.data()[i].unicode(); } }; +Q_DECLARE_TYPEINFO(QCharRef, Q_MOVABLE_TYPE); inline void QCharRef::setRow(uchar arow) { QChar(*this).setRow(arow); } inline void QCharRef::setCell(uchar acell) { QChar(*this).setCell(acell); } @@ -1285,6 +1287,7 @@ public: static int localeAwareCompare(const QStringRef &s1, const QString &s2); static int localeAwareCompare(const QStringRef &s1, const QStringRef &s2); }; +Q_DECLARE_TYPEINFO(QStringRef, Q_PRIMITIVE_TYPE); inline QStringRef &QStringRef::operator=(const QString *aString) { m_string = aString; m_position = 0; m_size = aString?aString->size():0; return *this; } |