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/Scope.cpp | |
parent | 51809d12a76784c379ada51bf812ac901952a730 (diff) | |
download | qt-creator-0528f2407aa79da94a92cac5a0fdd50a93eb5e1e.tar.gz |
Introduced type matchers.
Diffstat (limited to 'src/shared/cplusplus/Scope.cpp')
-rw-r--r-- | src/shared/cplusplus/Scope.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/shared/cplusplus/Scope.cpp b/src/shared/cplusplus/Scope.cpp index 2c4eea10f7..0a7dd294d4 100644 --- a/src/shared/cplusplus/Scope.cpp +++ b/src/shared/cplusplus/Scope.cpp @@ -50,12 +50,8 @@ #include "Symbols.h" #include "Names.h" #include "Literals.h" -#include <cstdlib> #include <cassert> #include <cstring> -#include <iostream> - -using namespace std; using namespace CPlusPlus; @@ -278,7 +274,7 @@ void Scope::rehash() _hashSize = DefaultInitialSize; _hash = reinterpret_cast<Symbol **>(realloc(_hash, sizeof(Symbol *) * _hashSize)); - memset(_hash, 0, sizeof(Symbol *) * _hashSize); + std::memset(_hash, 0, sizeof(Symbol *) * _hashSize); for (int index = 0; index < _symbolCount + 1; ++index) { Symbol *symbol = _symbols[index]; |