diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-06-29 17:57:15 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-07-02 11:18:51 +0200 |
commit | 8e4fb678fd68cbb01d5548ba07dfcb2927868df4 (patch) | |
tree | 8d2a8d2dd7c31a3bfa0d98b28f2cb7589e18ecc5 /src/libs/cplusplus/MatchingText.cpp | |
parent | e3e8b1a5c01ddc230772ee0553ca325704295312 (diff) | |
download | qt-creator-8e4fb678fd68cbb01d5548ba07dfcb2927868df4.tar.gz |
Removing SimpleToken
Diffstat (limited to 'src/libs/cplusplus/MatchingText.cpp')
-rw-r--r-- | src/libs/cplusplus/MatchingText.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/cplusplus/MatchingText.cpp b/src/libs/cplusplus/MatchingText.cpp index b14348e117..6dc7515d8d 100644 --- a/src/libs/cplusplus/MatchingText.cpp +++ b/src/libs/cplusplus/MatchingText.cpp @@ -152,7 +152,7 @@ QString MatchingText::insertMatchingBrace(const QTextCursor &cursor, const QStri const int startToken = tk.startToken(); int index = startToken; - const SimpleToken &token = tk[index - 1]; + const Token &token = tk[index - 1]; if (text.at(0) == QLatin1Char('"') && (token.is(T_STRING_LITERAL) || token.is(T_WIDE_STRING_LITERAL))) { if (text.length() != 1) @@ -220,7 +220,7 @@ QString MatchingText::insertParagraphSeparator(const QTextCursor &tc) const --index; // consume the `{' - const SimpleToken &token = tk[index - 1]; + const Token &token = tk[index - 1]; if (token.is(T_STRING_LITERAL) && tk[index - 2].is(T_EXTERN)) { // recognized extern "C" @@ -230,7 +230,7 @@ QString MatchingText::insertParagraphSeparator(const QTextCursor &tc) const int i = index - 1; forever { - const SimpleToken ¤t = tk[i - 1]; + const Token ¤t = tk[i - 1]; if (current.is(T_EOF_SYMBOL)) break; @@ -290,7 +290,7 @@ QString MatchingText::insertParagraphSeparator(const QTextCursor &tc) const } // look at the token before the matched brace - const SimpleToken &tokenBeforeBrace = tk[lparenIndex - 1]; + const Token &tokenBeforeBrace = tk[lparenIndex - 1]; if (tokenBeforeBrace.is(T_IF)) { // recognized an if statement |