summaryrefslogtreecommitdiffstats
path: root/raul/Atom.h
diff options
context:
space:
mode:
Diffstat (limited to 'raul/Atom.h')
-rw-r--r--raul/Atom.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/raul/Atom.h b/raul/Atom.h
index 41a7fdd..cded253 100644
--- a/raul/Atom.h
+++ b/raul/Atom.h
@@ -23,8 +23,6 @@
#include <cstring>
#include <string>
-using std::string;
-
namespace Raul {
@@ -42,11 +40,11 @@ public:
BLOB
};
- Atom() : _type(NIL), _blob_val(0) {}
- Atom(int32_t val) : _type(INT), _int_val(val) {}
- Atom(float val) : _type(FLOAT), _float_val(val) {}
- Atom(const char* val) : _type(STRING), _string_val(strdup(val)) {}
- Atom(const string& val) : _type(STRING), _string_val(strdup(val.c_str())) {}
+ Atom() : _type(NIL), _blob_val(0) {}
+ Atom(int32_t val) : _type(INT), _int_val(val) {}
+ Atom(float val) : _type(FLOAT), _float_val(val) {}
+ Atom(const char* val) : _type(STRING), _string_val(strdup(val)) {}
+ Atom(const std::string& val) : _type(STRING), _string_val(strdup(val.c_str())) {}
Atom(void* val) : _type(BLOB), _blob_size(sizeof(val)), _blob_val(malloc(_blob_size))
{ memcpy(_blob_val, val, sizeof(_blob_size)); }