[Qt-interest] global variables new and delete

Serge mb0 at km.ru
Fri Sep 11 06:35:37 CEST 2009


John McClurkin wrote:
>> return a.exec();
>>
> delete globals::myPtr;
> return 0;

- program execution will be finished in line with "return a.exec();"
do i need to replace this line just by "a.exec()" - without "return"?

--
Serge



More information about the Qt-interest-old mailing list