diff options
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); } |