preprocessor: save cycles by using ByteArrayRef

Change-Id: I339696763b045ef1bda17dd55746738ef4ddbb67
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-04-18 17:28:33 +02:00
committed by hjk
parent 3df5728dce
commit d4b4a75603
6 changed files with 16 additions and 12 deletions

View File

@@ -22,6 +22,11 @@ public:
, m_length(ref->length())
{}
ByteArrayRef(const char *start, int length)
: m_start(start)
, m_length(length)
{}
ByteArrayRef(const QByteArray *ref, int offset, int length)
: m_start(ref->constData() + offset)
, m_length(length)