diff --git a/googlemock/include/gmock/gmock-nice-strict.h b/googlemock/include/gmock/gmock-nice-strict.h index 5495a980..a5579afc 100644 --- a/googlemock/include/gmock/gmock-nice-strict.h +++ b/googlemock/include/gmock/gmock-nice-strict.h @@ -89,9 +89,9 @@ class NiceMock : public MockClass { internal::ImplicitCast_(this)); } - template - NiceMock(A1&& arg1, A2&& arg2, An&&... args) - : MockClass(std::forward(arg1), std::forward(arg2), + template + NiceMock(TArg1&& arg1, TArg2&& arg2, An&&... args) + : MockClass(std::forward(arg1), std::forward(arg2), std::forward(args)...) { ::testing::Mock::AllowUninterestingCalls( internal::ImplicitCast_(this)); @@ -127,9 +127,9 @@ class NaggyMock : public MockClass { internal::ImplicitCast_(this)); } - template - NaggyMock(A1&& arg1, A2&& arg2, An&&... args) - : MockClass(std::forward(arg1), std::forward(arg2), + template + NaggyMock(TArg1&& arg1, TArg2&& arg2, An&&... args) + : MockClass(std::forward(arg1), std::forward(arg2), std::forward(args)...) { ::testing::Mock::WarnUninterestingCalls( internal::ImplicitCast_(this)); @@ -165,9 +165,9 @@ class StrictMock : public MockClass { internal::ImplicitCast_(this)); } - template - StrictMock(A1&& arg1, A2&& arg2, An&&... args) - : MockClass(std::forward(arg1), std::forward(arg2), + template + StrictMock(TArg1&& arg1, TArg2&& arg2, An&&... args) + : MockClass(std::forward(arg1), std::forward(arg2), std::forward(args)...) { ::testing::Mock::FailUninterestingCalls( internal::ImplicitCast_(this));