Re: get/set wrap methods.
- From: Pavlo Solntsev <pavlo solntsev gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: get/set wrap methods.
- Date: Thu, 22 Feb 2018 13:56:39 -0600
Thanks for comments. My macroses:
_MEMBER_GET(name,name,const Glib::ustring&,const gchar*)
_MEMBER_SET(name,name,Glib::ustring,gchar*)
the generated code :
const Glib::ustring& DsnInfo::get_name() const
{
return Glib::convert_const_gchar_ptr_to_ustring(gobj()->name); // This is my concern. it looks like we return ref for temp object
}
void DsnInfo::set_name(const Glib::ustring& value)
{
gobj()->name = g_strdup((value).c_str());
}
Thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]