diff options
author | David Robillard <d@drobilla.net> | 2010-02-05 21:19:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-05 21:19:56 +0000 |
commit | b8f87a5b55387ad7b698742dcfcc1bc93538a053 (patch) | |
tree | 548fee2a6726a26f7592b9715b260be1bc4fe58c /raul/Atom.hpp | |
parent | cd70cc69937afca55dcdae75578bcdd23605eb64 (diff) | |
download | raul-b8f87a5b55387ad7b698742dcfcc1bc93538a053.tar.gz raul-b8f87a5b55387ad7b698742dcfcc1bc93538a053.tar.bz2 raul-b8f87a5b55387ad7b698742dcfcc1bc93538a053.zip |
Convert C-style casts to C++ style casts.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2432 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Atom.hpp')
-rw-r--r-- | raul/Atom.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/raul/Atom.hpp b/raul/Atom.hpp index 04ff4cb..46e93ad 100644 --- a/raul/Atom.hpp +++ b/raul/Atom.hpp @@ -203,7 +203,7 @@ private: , _buf(malloc(_type_length + _size)) { memcpy(_buf, type, _type_length); - memcpy((char*)_buf + _type_length, data, size); + memcpy(static_cast<char*>(_buf) + _type_length, data, size); } BlobValue(const BlobValue& copy) @@ -217,8 +217,8 @@ private: ~BlobValue() { free(_buf); } - inline const char* type() const { return (const char*)_buf; } - inline const void* data() const { return (const char*)_buf + _type_length; } + inline const char* type() const { return static_cast<const char*>(_buf); } + inline const void* data() const { return static_cast<const char*>(_buf) + _type_length; } inline size_t size() const { return _size; } private: size_t _type_length; ///< Length of type string (first part of buffer, inc. \0) |