summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qringbuffer_p.h
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2015-05-27 18:25:55 +0300
committerAlex Trotsenko <alex1973tr@gmail.com>2015-05-28 13:45:47 +0000
commitac4b28ce4d0793d7f36d4d2325070daa0dbcae0b (patch)
tree2e1446b7ffda52134559be84b022b701db85ef32 /src/corelib/tools/qringbuffer_p.h
parent547141352242f7f4eebc6814af7a5ea0f3dff5f8 (diff)
QRingBuffer: merge indexOf() overloads
Change-Id: Icfed4a29bc2ac95b3e0300eb4579751fe7e57e77 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/corelib/tools/qringbuffer_p.h')
-rw-r--r--src/corelib/tools/qringbuffer_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qringbuffer_p.h b/src/corelib/tools/qringbuffer_p.h
index 3a8cca46d8..68509a6a80 100644
--- a/src/corelib/tools/qringbuffer_p.h
+++ b/src/corelib/tools/qringbuffer_p.h
@@ -113,7 +113,7 @@ public:
}
Q_CORE_EXPORT void clear();
- Q_CORE_EXPORT qint64 indexOf(char c) const;
+ inline qint64 indexOf(char c) const { return indexOf(c, size()); }
Q_CORE_EXPORT qint64 indexOf(char c, qint64 maxLength) const;
Q_CORE_EXPORT qint64 read(char *data, qint64 maxLength);
Q_CORE_EXPORT QByteArray read();