On 27.02.06 17:56:26, Oliver Elphick wrote:
> On Mon, 2006-02-27 at 15:53 +0100, Andreas Pakulat wrote:
> > No, he's not complaining about your upload_copy_started method, but he's
> > complaining about the way you use the const QList<> argument.
> Ok. To get round it I do instead:
Don't try to get around it, try to understand what the purpose of const
is and then find the proper solution for your method.
So, if your QList needs to be passed as const, than you tell everybody
who uses the function you're not going to change the list. This means
you have to make sure that anything you get out of the list is const
too, like this:
const QNetworkOperation* op = l.first();
If you don't need the list to be const, remove the keyword from your
You'll feel devilish tonight. Toss dynamite caps under a flamenco dancer's
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/