diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-23 11:56:44 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-23 12:53:33 +0100 |
commit | 0528f2407aa79da94a92cac5a0fdd50a93eb5e1e (patch) | |
tree | 47e9d5d43883faff53089b13f30102b1b57424c4 /src/shared/cplusplus/Control.cpp | |
parent | 51809d12a76784c379ada51bf812ac901952a730 (diff) | |
download | qt-creator-0528f2407aa79da94a92cac5a0fdd50a93eb5e1e.tar.gz |
Introduced type matchers.
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r-- | src/shared/cplusplus/Control.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp index 4d36658e5c..28365a6259 100644 --- a/src/shared/cplusplus/Control.cpp +++ b/src/shared/cplusplus/Control.cpp @@ -55,11 +55,9 @@ #include "Names.h" #include "Array.h" #include <map> // ### replace me with LiteralTable -#include <string> using namespace CPlusPlus; - template <typename _Iterator> static void delete_map_entries(_Iterator first, _Iterator last) { @@ -639,7 +637,7 @@ Identifier *Control::findOrInsertIdentifier(const char *chars, unsigned size) Identifier *Control::findOrInsertIdentifier(const char *chars) { - unsigned length = std::char_traits<char>::length(chars); + unsigned length = std::strlen(chars); return findOrInsertIdentifier(chars, length); } @@ -666,7 +664,7 @@ StringLiteral *Control::findOrInsertStringLiteral(const char *chars, unsigned si StringLiteral *Control::findOrInsertStringLiteral(const char *chars) { - unsigned length = std::char_traits<char>::length(chars); + unsigned length = std::strlen(chars); return findOrInsertStringLiteral(chars, length); } @@ -675,7 +673,7 @@ NumericLiteral *Control::findOrInsertNumericLiteral(const char *chars, unsigned NumericLiteral *Control::findOrInsertNumericLiteral(const char *chars) { - unsigned length = std::char_traits<char>::length(chars); + unsigned length = std::strlen(chars); return findOrInsertNumericLiteral(chars, length); } |