summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Scope.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-11-23 11:56:44 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-11-23 12:53:33 +0100
commit0528f2407aa79da94a92cac5a0fdd50a93eb5e1e (patch)
tree47e9d5d43883faff53089b13f30102b1b57424c4 /src/shared/cplusplus/Scope.cpp
parent51809d12a76784c379ada51bf812ac901952a730 (diff)
downloadqt-creator-0528f2407aa79da94a92cac5a0fdd50a93eb5e1e.tar.gz
Introduced type matchers.
Diffstat (limited to 'src/shared/cplusplus/Scope.cpp')
-rw-r--r--src/shared/cplusplus/Scope.cpp6
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];