Commit 6d837b62 authored by hjk's avatar hjk Committed by hjk
Browse files

preprocessor: don't store original sources, it's never accessed again

Change-Id: I3b06cfc827543d20069f69e00123ccf2bc19ed31
Reviewed-by: default avatarhjk <>
parent 493cde83
......@@ -585,11 +585,8 @@ Preprocessor::Preprocessor(Client *client, Environment *env)
QByteArray Preprocessor::operator()(const QString &fileName, const QString &source)
const QString previousOriginalSource = m_originalSource;
m_originalSource = source;
const QByteArray bytes = source.toLatin1();
const QByteArray preprocessedCode = operator()(fileName, bytes);
m_originalSource = previousOriginalSource;
return preprocessedCode;
......@@ -183,6 +183,8 @@ private:
QByteArray m_scratchBuffer;
QString m_originalSource;
QList<State> m_savedStates;
bool m_expandMacros;
bool m_keepComments;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment