path: root/src/corelib/tools/qbytearray.h
diff options
authorThiago Macieira <>2014-08-06 11:57:31 -0300
committerThiago Macieira <>2014-08-08 00:05:03 +0200
commit6a237a4e766979ff191818cbdab2c5aa1a6f490b (patch)
treeff104c259fba37f1eb2f7d176ad0f5ed3c201f05 /src/corelib/tools/qbytearray.h
parent04ba6fbed900403ef8892820fa93925a8e21f7b1 (diff)
Add some missing STL typedefs and functions to QStringRef and QByteArray
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 <>
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
1 files changed, 4 insertions, 0 deletions
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);