bug-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-cgicc] Compiler warnings with g++-4.0


From: Martin Dietze
Subject: [bug-cgicc] Compiler warnings with g++-4.0
Date: Wed, 31 Aug 2005 15:54:17 +0200
User-agent: Mutt/1.5.6+20040907i

Hello,

 I found that g++-4.0 issues a warning at HTTPHeader::setCookie()
because there is no explicit assignment operator for HTTPCookie.
I thus propose to add it to the class:

|    /*!
|     * \brief Assignment operator.
|     *
|     * \param cookie The HTTPCookie to initialize *this with
|     * \return a reference to *this                         
|     */                            
|    inline HTTPCookie&
|    operator= (const HTTPCookie& cookie)
|    {
|        this->fName = cookie.fName;
|        this->fValue = cookie.fValue;
|        this->fComment = cookie.fComment;
|        this->fDomain = cookie.fDomain;
|        this->fMaxAge = cookie.fMaxAge;
|        this->fPath = cookie.fPath;
|        this->fSecure = cookie.fSecure;
|    }

Cheers,

Martin

-- 
---- Dipl.Ing. Martin Dietze -- / --- address@hidden ----------
-- 4G Systeme GmbH Hamburg --- / --- address@hidden --
------------- / http://herbert.the-little-red-haired-girl.org / -------------
=+= 
My opinions may have changed, but not the fact that I am right. 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]