Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 527FA200C48 for ; Thu, 6 Apr 2017 11:31:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 514DE160B83; Thu, 6 Apr 2017 09:31:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 68196160BBA for ; Thu, 6 Apr 2017 11:31:56 +0200 (CEST) Received: (qmail 17423 invoked by uid 500); 6 Apr 2017 09:31:55 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 16023 invoked by uid 99); 6 Apr 2017 09:31:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2017 09:31:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 99EAAE8F01; Thu, 6 Apr 2017 09:31:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.apache.org Date: Thu, 06 Apr 2017 09:32:34 -0000 Message-Id: In-Reply-To: <3ba27144dbdb41f0bb9f3db0049366f4@git.apache.org> References: <3ba27144dbdb41f0bb9f3db0049366f4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [43/50] [abbrv] ignite git commit: IGNITE-3583: Replaced passing by value with passing by reference archived-at: Thu, 06 Apr 2017 09:31:58 -0000 IGNITE-3583: Replaced passing by value with passing by reference Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c3431e90 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c3431e90 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c3431e90 Branch: refs/heads/ignite-4003 Commit: c3431e901678ea1520bfc647b935e7d425b839d4 Parents: 5d5ba5c Author: Igor Sapego Authored: Tue Apr 4 19:07:49 2017 +0300 Committer: Igor Sapego Committed: Tue Apr 4 19:07:49 2017 +0300 ---------------------------------------------------------------------- .../cpp/binary/include/ignite/binary/binary_raw_writer.h | 4 ++-- .../platforms/cpp/binary/include/ignite/binary/binary_writer.h | 4 ++-- .../cpp/binary/include/ignite/impl/binary/binary_writer_impl.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/c3431e90/modules/platforms/cpp/binary/include/ignite/binary/binary_raw_writer.h ---------------------------------------------------------------------- diff --git a/modules/platforms/cpp/binary/include/ignite/binary/binary_raw_writer.h b/modules/platforms/cpp/binary/include/ignite/binary/binary_raw_writer.h index 88a8014..a43c957 100644 --- a/modules/platforms/cpp/binary/include/ignite/binary/binary_raw_writer.h +++ b/modules/platforms/cpp/binary/include/ignite/binary/binary_raw_writer.h @@ -377,7 +377,7 @@ namespace ignite * @param val Object. */ template - void WriteObject(T val) + void WriteObject(const T& val) { impl->WriteObject(val); } @@ -388,4 +388,4 @@ namespace ignite } } -#endif //_IGNITE_BINARY_BINARY_RAW_WRITER \ No newline at end of file +#endif //_IGNITE_BINARY_BINARY_RAW_WRITER http://git-wip-us.apache.org/repos/asf/ignite/blob/c3431e90/modules/platforms/cpp/binary/include/ignite/binary/binary_writer.h ---------------------------------------------------------------------- diff --git a/modules/platforms/cpp/binary/include/ignite/binary/binary_writer.h b/modules/platforms/cpp/binary/include/ignite/binary/binary_writer.h index e3962cf..f8e7de3 100644 --- a/modules/platforms/cpp/binary/include/ignite/binary/binary_writer.h +++ b/modules/platforms/cpp/binary/include/ignite/binary/binary_writer.h @@ -410,7 +410,7 @@ namespace ignite * @param val Value. */ template - void WriteObject(const char* fieldName, T val) + void WriteObject(const char* fieldName, const T& val) { impl->WriteObject(fieldName, val); } @@ -428,4 +428,4 @@ namespace ignite } } -#endif //_IGNITE_BINARY_BINARY_WRITER \ No newline at end of file +#endif //_IGNITE_BINARY_BINARY_WRITER http://git-wip-us.apache.org/repos/asf/ignite/blob/c3431e90/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h ---------------------------------------------------------------------- diff --git a/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h b/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h index 2cc86e1..50b2375 100644 --- a/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h +++ b/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h @@ -654,7 +654,7 @@ namespace ignite * @param val Object. */ template - void WriteObject(const char* fieldName, T val) + void WriteObject(const char* fieldName, const T& val) { CheckRawMode(false); @@ -1018,4 +1018,4 @@ namespace ignite } } -#endif //_IGNITE_IMPL_BINARY_BINARY_WRITER \ No newline at end of file +#endif //_IGNITE_IMPL_BINARY_BINARY_WRITER