summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-10-16 18:39:32 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2018-10-16 18:47:20 -0300
commit946b47430dcebeb91f8a4a9ab49ee8cd71d4e5e9 (patch)
tree335cd7c0fee58f9f064968feadfc257e93aa91f9
parente6fc1ded6edf843f21340587a77fabaf495169d7 (diff)
eina_cxx: Fix eina::value copy constructor.
Summary: The previous declaration was causing the implicit copy constructor to be invoked when copying a new eina::value from an existing eina::value, thus leading to two wrappers pointing to the same underlying C pointer. This showed some error messages when running the tests but under autotools it didn't fail, while building with meson caused it to segfault. Reviewers: vitor.sousa Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7166
-rw-r--r--src/bindings/cxx/eina_cxx/eina_value.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings/cxx/eina_cxx/eina_value.hh b/src/bindings/cxx/eina_cxx/eina_value.hh
index 36e6baa92a..5775aeb914 100644
--- a/src/bindings/cxx/eina_cxx/eina_value.hh
+++ b/src/bindings/cxx/eina_cxx/eina_value.hh
@@ -702,7 +702,7 @@ struct value : value_view
702 * @brief Copy Constructor. Create an generic value storage holding the same value of @p other. 702 * @brief Copy Constructor. Create an generic value storage holding the same value of @p other.
703 * @param other Another <tt>eina::value</tt> object. 703 * @param other Another <tt>eina::value</tt> object.
704 */ 704 */
705 value(value_view const& other) 705 value(value const& other)
706 : value_view(_eina_value_traits<char>::create()) 706 : value_view(_eina_value_traits<char>::create())
707 { 707 {
708 if(!eina_value_copy(other.native_handle(), _raw)) 708 if(!eina_value_copy(other.native_handle(), _raw))