qt-interest@trolltech.com
[Top] [All Lists]

Re: I don't understand this error

Subject: Re: I don't understand this error
From:
Date: Mon, 27 Feb 2006 20:51:42 +0100
On Mon, Feb 27, 2006 at 08:34:21PM +0100, Andreas Pakulat wrote:
> ...
> const QNetworkOperation* op = l.first();

BTW I think there is a type error (if I remeber the original post
correctly):
Your list contains some QNetworkOperation and l.first() returns a
reference to one of those QNetworkOperation things.
But you try to use this reference to a QNetworkOperation to initialize
a pointer (QNetworkOperation*).

Perhaps something like this works better:
const QNetworkOperation &op = l.first();

Klaus Wachtler

-- 
-----------------------------------------------------------------------------

                        Klaus Wachtler
                        Breidingstr. 17
                        29614 Soltau
                        Tel:   05191/70271, 0171/4553039
                        email: klaus@xxxxxxxxxxx
                        HTTP:  www.wachtler.de

-----------------------------------------------------------------------------

--
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/

<Prev in Thread] Current Thread [Next in Thread>