Re: AW: [gtkmm] Segfault when calling the MenuItem superconstructor.



On Wed, 2002-08-28 at 15:07, Hopfes, Harald wrote:
> Hi!
> 
> In the method
> 
> 	MenuItem::add_accel_label
> 
> I found the following:
> 
> 	pLabel->property_xalign() = 0.0;
> 
> but property_xalign() returns by value. What sense does it make to
> set a value that is only temporary available?

property_align() returns a proxy object, which has an overloaded
operator=(). It makes sense if operator=() does something worthwhiel.

You could change it to use set_value() if you really think that it's a
problem.

> Could somebody also check, if the other stuff inside
> 
> 	MenuItem::add_accel_label
> 
> is correct?

Please be more specific. And does this have anything to do with the
subject?

-- 
Murray Cumming
murrayc usa net
www.murrayc.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]