summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Literals.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/Literals.cpp
parent51809d12a76784c379ada51bf812ac901952a730 (diff)
downloadqt-creator-0528f2407aa79da94a92cac5a0fdd50a93eb5e1e.tar.gz
Introduced type matchers.
Diffstat (limited to 'src/shared/cplusplus/Literals.cpp')
-rw-r--r--src/shared/cplusplus/Literals.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/shared/cplusplus/Literals.cpp b/src/shared/cplusplus/Literals.cpp
index 078c070270..dd5acd25e0 100644
--- a/src/shared/cplusplus/Literals.cpp
+++ b/src/shared/cplusplus/Literals.cpp
@@ -51,8 +51,6 @@
#include <algorithm>
#include <iostream>
-using namespace std;
-
using namespace CPlusPlus;
////////////////////////////////////////////////////////////////////////////////
@@ -61,9 +59,8 @@ Literal::Literal(const char *chars, unsigned size)
{
_chars = new char[size + 1];
- strncpy(_chars, chars, size);
+ std::strncpy(_chars, chars, size);
_chars[size] = '\0';
-
_size = size;
_hashCode = hashCode(_chars, _size);
@@ -82,7 +79,7 @@ bool Literal::isEqualTo(const Literal *other) const
return false;
else if (size() != other->size())
return false;
- return ! strcmp(chars(), other->chars());
+ return ! std::strcmp(chars(), other->chars());
}
Literal::iterator Literal::begin() const