Hi!

Can someone tell me why QCoreApplication uses an 'int &argc' type parameter 
instead of a
plain 'int argc'? Does QCoreApplication expect the value to change? Does it 
change the
value by itself?

When deriving from QCoreApplication this can cause funny crashes if one forgets 
to use a
reference type in the derived class' constructor parameter. So I guess there 
must be a
very good reason why QCoreApplication uses a reference instead of copy-by-value.

-- 
Best Regards,
Bernhard Lindner

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to