summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-03-07 15:55:25 -0800
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:25:12 +0300
commit3dd168f24a0294e7f306514d0bb71985457ab976 (patch)
treea220436146323ea6690e7cc9f29f726f52c3dcaa
parent6a0976ce2e1006cda317625e294aa878045e305a (diff)
checkpoint work towards unifying the binding type for classes and smart pointers.
-rwxr-xr-xsystem/include/emscripten/wire.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/system/include/emscripten/wire.h b/system/include/emscripten/wire.h
index d4efc3ac..f782d49e 100755
--- a/system/include/emscripten/wire.h
+++ b/system/include/emscripten/wire.h
@@ -241,11 +241,7 @@ namespace emscripten {
}
static shared_ptr fromWireType(WireType wt) {
- if (wt) {
- return shared_ptr(*wt);
- } else {
- return shared_ptr();
- }
+ return *wt;
}
static void destroy(WireType p) {