diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-06-13 18:22:27 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2019-12-08 18:19:38 +0100 |
commit | b42a2b3c3338a320a438bc081cb885fd4547f01f (patch) | |
tree | 80c729495f45bb9db011ed07c3c542f8a2727989 /src/corelib/text/qbytearraylist.h | |
parent | 3d9bae304cb1fa8f5f6f8854141fc8ecca92a333 (diff) |
Inline the size and begin pointer in QVector
Add QGenericArray to simplify operations. This class can be shared by
other tool classes. If there is nothing else to share it, we can move
the code onto qvector.h. The one candidate is QList.
All tests pass and valgrind is good.
Change-Id: Ieaa80709caf5f50520aa97312ab726396f5475eb
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/corelib/text/qbytearraylist.h')
-rw-r--r-- | src/corelib/text/qbytearraylist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/text/qbytearraylist.h b/src/corelib/text/qbytearraylist.h index 4b6c926960..e113c6059c 100644 --- a/src/corelib/text/qbytearraylist.h +++ b/src/corelib/text/qbytearraylist.h @@ -80,8 +80,10 @@ public: inline QByteArray join(char sep) const { return QtPrivate::QByteArrayList_join(self(), &sep, 1); } +#if 0 inline int indexOf(const char *needle, int from = 0) const { return QtPrivate::QByteArrayList_indexOf(self(), needle, from); } +#endif private: typedef QVector<QByteArray> Self; |