aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjinsuck <jkim@imvu.com>2012-12-21 15:24:48 -0800
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:22:42 +0300
commitea98beba7402b83a05434342d5b2af85aae3dd42 (patch)
tree2ca55a3518f5f1e88d80d7916612f3ce4d07aa63
parent77f2b4588b65c4c3641131ee71657eaaa8d3dcaf (diff)
remove meaningless casting back and forth
-rwxr-xr-xsystem/include/emscripten/bind.h2
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) {