diff options
Diffstat (limited to 'src/libs/cplusplus/PPToken.h')
-rw-r--r-- | src/libs/cplusplus/PPToken.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/cplusplus/PPToken.h b/src/libs/cplusplus/PPToken.h index adcdda9637..98600811a6 100644 --- a/src/libs/cplusplus/PPToken.h +++ b/src/libs/cplusplus/PPToken.h @@ -96,6 +96,11 @@ public: const QByteArray &source() const { return m_src; } + bool hasSource() const + { return !m_src.isEmpty(); } + + void squeezeSource(); + const char *bufferStart() const { return m_src.constData(); } @@ -105,11 +110,6 @@ public: ByteArrayRef asByteArrayRef() const { return ByteArrayRef(&m_src, offset, length()); } - bool isValid() const - { return !m_src.isEmpty(); } - - void squeeze(); - private: QByteArray m_src; }; |