diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-10-26 15:40:09 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:08:53 -0300 |
commit | eb1bab16740473eed6150944e061df96e65321b8 (patch) | |
tree | 2435935e068896f3f62089c9835934f50f01d748 /libshiboken | |
parent | ce8f43df969038f5e24c7923abeac2c9fa6461e0 (diff) |
Removed unnecessary cast on copy function.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken')
-rw-r--r-- | libshiboken/conversions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h index 1dbc1840c..f393dfbfe 100644 --- a/libshiboken/conversions.h +++ b/libshiboken/conversions.h @@ -90,7 +90,7 @@ struct CppObjectCopier<T, false> { static inline T* copy(const T& obj) { - return new T(*reinterpret_cast<const T*>(&obj)); + return new T(obj); } }; |