From: Patrick S. V. <pat...@al...> - 2003-02-25 11:35:44
|
On Tuesday 25 February 2003 05:30, Brett Blackham wrote: > Summary of what I am asking/observed: > Forgive me if I don't remember C++ very well. But is it bad to have the > variable name the same name as a variable passed to the method. In PHP I > think it would just reassign it but I wasn't sure that was okay in C++. forgive me, I seem not to remember c++ at all... ... I thought this might just hide the var. Probably it got hidden bevor assinged! ;-( <snip> > It still wont work but seems to be crashing somewhere else now. this solves this problem... ... there (of course) some problems with the old config settings. > When I changed the name of the KMonListViewItem* from item to myitem (line > numbers 189,190) in mainwindowimpl.cpp I was able to prevent crashes at the > _node->showPopupMenu( p ) in kmonnotifierlistviewitem.cpp But now I get > them at KMonNode::showPopupMenu (QPoint const&) on kmonnode.cpp:144. (see > backtrace) Is it really getting futher? > think so, it now crashes when opening the popup... <snip> > > So I thought I would comment out the _popupMenu->clear(); just to see where > it would get me. (line 144 in KMonNode) > now I am initialising the _popupMenu in the c'tor... > > It just got me to the next line it uses _popupMenu it now crashes while showing the popup... > Patrik, I CC'd you just incase the mailing list still wont let me send. got it twice... thanks anyway! cp |