Index: mojo/public/cpp/bindings/struct_ptr.h |
diff --git a/mojo/public/cpp/bindings/struct_ptr.h b/mojo/public/cpp/bindings/struct_ptr.h |
index ad77d60b08423ab87b20283a66a7363dbdf7e36d..12ec13533c51c96478b88fd91cfe97e8f834dca3 100644 |
--- a/mojo/public/cpp/bindings/struct_ptr.h |
+++ b/mojo/public/cpp/bindings/struct_ptr.h |
@@ -41,7 +41,7 @@ class StructPtr { |
template <typename U> |
U To() const { |
- return TypeConverter<StructPtr, U>::ConvertTo(*this); |
+ return TypeConverter<U, StructPtr>::Convert(*this); |
} |
void reset() { |
@@ -106,7 +106,7 @@ class InlinedStructPtr { |
template <typename U> |
U To() const { |
- return TypeConverter<InlinedStructPtr, U>::ConvertTo(*this); |
+ return TypeConverter<U, InlinedStructPtr>::Convert(*this); |
} |
void reset() { |