From 967cf0b4304ad1412fbc3970a4dbac68a15356c5 Mon Sep 17 00:00:00 2001 From: Christian Gruber Date: Wed, 3 Jun 2020 23:41:04 +0200 Subject: [PATCH] Pass std::vector arguments by reference instead of by value --- libgnucash/engine/mocks/gmock-Account.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgnucash/engine/mocks/gmock-Account.h b/libgnucash/engine/mocks/gmock-Account.h index ee00366043..271dac16ce 100644 --- a/libgnucash/engine/mocks/gmock-Account.h +++ b/libgnucash/engine/mocks/gmock-Account.h @@ -62,8 +62,8 @@ public: MOCK_METHOD2(findAccount, Account *(const char*, const char*)); MOCK_METHOD3(addAccount, void(const char*, const char*, Account*)); - MOCK_METHOD1(findAccountBayes, Account *(std::vector)); - MOCK_METHOD2(addAccountBayes, void(std::vector, Account*)); + MOCK_METHOD1(findAccountBayes, Account *(std::vector&)); + MOCK_METHOD2(addAccountBayes, void(std::vector&, Account*)); }; #endif