preprocessor: inline state setup

Change-Id: Icc3ee542c8e8f95dfd48604144e3f4ab638fdcd4
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-04-19 11:54:31 +02:00
committed by hjk
parent ef09a67c6b
commit 0362016f02
2 changed files with 13 additions and 25 deletions

View File

@@ -149,8 +149,6 @@ private:
static bool isQtReservedWord(const ByteArrayRef &name);
State createStateFromSource(const QString &fileName, const QByteArray &source, QByteArray *result, bool noLines, bool markGeneratedTokens, bool inCondition) const;
inline bool atStartOfOutputLine() const
{ return (m_state.m_result && !m_state.m_result->isEmpty()) ? m_state.m_result->end()[-1] == '\n' : true; }