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-3477-master Commit: c3431e901678ea1520bfc647b935e7d425b839d4 Parents: 5d5ba5c Author: Igor Sapego <igors...@gmail.com> Authored: Tue Apr 4 19:07:49 2017 +0300 Committer: Igor Sapego <igors...@gmail.com> 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<typename T> - void WriteObject(T val) + void WriteObject(const T& val) { impl->WriteObject<T>(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<typename T> - void WriteObject(const char* fieldName, T val) + void WriteObject(const char* fieldName, const T& val) { impl->WriteObject<T>(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<typename T> - 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