diff options
author | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2015-07-24 20:12:16 +0000 |
---|---|---|
committer | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2015-07-24 20:12:16 +0000 |
commit | 5b7905cd4e67b6702dfe47b5f78cb69f0338e31a (patch) | |
tree | d2e99641111a9f3647d32fab39fba2c8a1bed4d2 | |
parent | 702663c6254347231c9a425e5fb1fe67ad0ffe58 (diff) | |
download | googletest-5b7905cd4e67b6702dfe47b5f78cb69f0338e31a.tar.gz |
Fix an instance of move-pessimization.
git-svn-id: http://googletest.googlecode.com/svn/trunk@736 861a406c-534a-0410-8894-cb66d6ee9925
-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 936dfd5..4438b05 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 |