diff options
author | Chad Austin <chad@imvu.com> | 2013-04-03 20:03:18 -0700 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:27:21 +0300 |
commit | 7eb89c3e4feabd85b50cfad9f3c44a9235540a05 (patch) | |
tree | 4eedbbf609bddf69e6222646272d4c673141b03d /system | |
parent | f508d6306ff0be4966d3f26b99a26c46f7c2c1ef (diff) |
refactoring
Diffstat (limited to 'system')
-rwxr-xr-x | system/include/emscripten/wire.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/system/include/emscripten/wire.h b/system/include/emscripten/wire.h index 9c8cd096..64114491 100755 --- a/system/include/emscripten/wire.h +++ b/system/include/emscripten/wire.h @@ -182,25 +182,11 @@ namespace emscripten { }; template<typename T> - struct BindingType<const T> { - typedef typename BindingType<T>::WireType WireType; - static WireType toWireType(const T& v) { - return BindingType<T>::toWireType(v); - } - static T fromWireType(WireType wt) { - return BindingType<T>::fromWireType(wt); - } + struct BindingType<const T> : public BindingType<T> { }; template<typename T> - struct BindingType<const T&> { - typedef typename BindingType<T>::WireType WireType; - static WireType toWireType(const T& v) { - return BindingType<T>::toWireType(v); - } - static T fromWireType(WireType wt) { - return BindingType<T>::fromWireType(wt); - } + struct BindingType<const T&> : public BindingType<T> { }; template<typename T> |