diff options
Diffstat (limited to 'include/gmock/gmock-generated-function-mockers.h.pump')
-rw-r--r-- | include/gmock/gmock-generated-function-mockers.h.pump | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/gmock/gmock-generated-function-mockers.h.pump b/include/gmock/gmock-generated-function-mockers.h.pump index 50b369bb..4f82d622 100644 --- a/include/gmock/gmock-generated-function-mockers.h.pump +++ b/include/gmock/gmock-generated-function-mockers.h.pump @@ -140,7 +140,8 @@ $var matcher_as = [[$for j, \ } \ ::testing::MockSpec<F>& \ gmock_##Method($matcher_as) constness { \ - return GMOCK_MOCKER_($i, constness, Method).RegisterOwner(this).With($as); \ + GMOCK_MOCKER_($i, constness, Method).RegisterOwner(this); \ + return GMOCK_MOCKER_($i, constness, Method).With($as); \ } \ mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_($i, constness, Method) |