From 6a237a4e766979ff191818cbdab2c5aa1a6f490b Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 6 Aug 2014 11:57:31 -0300 Subject: Add some missing STL typedefs and functions to QStringRef and QByteArray MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These will be needed in some template code that is to come. Change-Id: I5b93f4320313f7b15a6404de2c98f85485735fda Reviewed-by: Olivier Goffart Reviewed-by: Marc Mutz Reviewed-by: Jędrzej Nowacki --- src/corelib/tools/qbytearray.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib/tools/qbytearray.h') diff --git a/src/corelib/tools/qbytearray.h b/src/corelib/tools/qbytearray.h index b5af305233..ba7fdbb10a 100644 --- a/src/corelib/tools/qbytearray.h +++ b/src/corelib/tools/qbytearray.h @@ -389,8 +389,12 @@ public: const_iterator constEnd() const; // stl compatibility + typedef int size_type; + typedef qptrdiff difference_type; typedef const char & const_reference; typedef char & reference; + typedef char *pointer; + typedef const char *const_pointer; typedef char value_type; void push_back(char c); void push_back(const char *c); -- cgit v1.2.3