diff options
author | jinsuck <jkim@imvu.com> | 2012-12-21 15:24:48 -0800 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:22:42 +0300 |
commit | ea98beba7402b83a05434342d5b2af85aae3dd42 (patch) | |
tree | 2ca55a3518f5f1e88d80d7916612f3ce4d07aa63 | |
parent | 77f2b4588b65c4c3641131ee71657eaaa8d3dcaf (diff) |
remove meaningless casting back and forth
-rwxr-xr-x | system/include/emscripten/bind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h index 3f857a2a..90dca77c 100755 --- a/system/include/emscripten/bind.h +++ b/system/include/emscripten/bind.h @@ -904,7 +904,7 @@ namespace emscripten { template<class ConcreteWrapperType> static std::shared_ptr<ConcreteWrapperType> cloneToSharedWrapperPtr(InterfaceType& i) { - return std::dynamic_pointer_cast<ConcreteWrapperType>(cloneToSharedPtr<ConcreteWrapperType>(i)); + return std::make_shared<ConcreteWrapperType>(&i); } void initialize(internal::EM_VAL handle) { |