forked from qt-creator/qt-creator
preprocessor: save cycles by using ByteArrayRef
Change-Id: I339696763b045ef1bda17dd55746738ef4ddbb67 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user