diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-09-07 13:39:46 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-09-23 16:52:41 +0200 |
commit | 6c347a12c66793db50bb180b3a0ad2ea8c38f6f9 (patch) | |
tree | 041e3eff4b52cabc36643f85d59d8cfd3659c878 /src/shared/cplusplus/Control.cpp | |
parent | 8848be4caae3e7bbdb3a7cee7949336990a46941 (diff) | |
download | qt-creator-6c347a12c66793db50bb180b3a0ad2ea8c38f6f9.tar.gz |
Introduced LiteralTable::findLiteral() and Control::findIdentifier()
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r-- | src/shared/cplusplus/Control.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp index fce76e32ad..fda1c3b32b 100644 --- a/src/shared/cplusplus/Control.cpp +++ b/src/shared/cplusplus/Control.cpp @@ -582,6 +582,9 @@ DiagnosticClient *Control::diagnosticClient() const void Control::setDiagnosticClient(DiagnosticClient *diagnosticClient) { d->diagnosticClient = diagnosticClient; } +Identifier *Control::findIdentifier(const char *chars, unsigned size) const +{ return d->identifiers.findLiteral(chars, size); } + Identifier *Control::findOrInsertIdentifier(const char *chars, unsigned size) { return d->identifiers.findOrInsertLiteral(chars, size); } |