diff options
author | kosak <kosak@google.com> | 2015-07-24 20:12:16 +0000 |
---|---|---|
committer | kosak <kosak@google.com> | 2015-07-24 20:12:16 +0000 |
commit | 01e229bacf8643eb47938e2ccf34372c7b177921 (patch) | |
tree | d2e99641111a9f3647d32fab39fba2c8a1bed4d2 /include/gtest | |
parent | 794ef030ebad671b699abdfd8e0474f93045be91 (diff) | |
download | googletest-01e229bacf8643eb47938e2ccf34372c7b177921.tar.gz googletest-01e229bacf8643eb47938e2ccf34372c7b177921.tar.bz2 googletest-01e229bacf8643eb47938e2ccf34372c7b177921.zip |
Fix an instance of move-pessimization.
Diffstat (limited to 'include/gtest')
-rw-r--r-- | include/gtest/internal/gtest-port.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index 936dfd50..4438b05a 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -1334,7 +1334,7 @@ const T& move(const T& t) { // similar functions users may have (e.g., implicit_cast). The internal // namespace alone is not enough because the function can be found by ADL. template<typename To> -inline To ImplicitCast_(To x) { return ::testing::internal::move(x); } +inline To ImplicitCast_(To x) { return x; } // When you upcast (that is, cast a pointer from type Foo to type // SuperclassOfFoo), it's fine to use ImplicitCast_<>, since upcasts |