From b8f87a5b55387ad7b698742dcfcc1bc93538a053 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 5 Feb 2010 21:19:56 +0000 Subject: Convert C-style casts to C++ style casts. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2432 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Atom.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'raul/Atom.hpp') 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(_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(_buf); } + inline const void* data() const { return static_cast(_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) -- cgit v1.2.1