moc: Make toExpand const, we do not modify it.
Change-Id: I7036ea7ee9e533670ebed425e6c4a8bb0063f751 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
4535c7911d
commit
f6d5c21e3e
@ -529,7 +529,7 @@ Symbols Preprocessor::tokenize(const QByteArray& input, int lineNum, Preprocesso
|
||||
return symbols;
|
||||
}
|
||||
|
||||
void Preprocessor::macroExpand(Symbols *into, Preprocessor *that, Symbols &toExpand, int &index,
|
||||
void Preprocessor::macroExpand(Symbols *into, Preprocessor *that, const Symbols &toExpand, int &index,
|
||||
int lineNum, bool one, const QSet<QByteArray> &excludeSymbols)
|
||||
{
|
||||
SymbolStack symbols;
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
|
||||
void substituteUntilNewline(Symbols &substituted);
|
||||
static Symbols macroExpandIdentifier(Preprocessor *that, SymbolStack &symbols, int lineNum, QByteArray *macroName);
|
||||
static void macroExpand(Symbols *into, Preprocessor *that, Symbols &toExpand, int &index, int lineNum, bool one,
|
||||
static void macroExpand(Symbols *into, Preprocessor *that, const Symbols &toExpand, int &index, int lineNum, bool one,
|
||||
const QSet<QByteArray> &excludeSymbols = QSet<QByteArray>());
|
||||
|
||||
int evaluateCondition();
|
||||
|
Loading…
Reference in New Issue
Block a user