Compiler warnings with g++-4.0
Martin Dietze <[email protected]> Wed, 31 Aug 2005 15:54:17 +0200
| Newsgroups | gmane.comp.gcc.cgicc.bugs |
|---|---|
| Message-ID | <[email protected]> |
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 -- / --- [email protected] ----------
-- 4G Systeme GmbH Hamburg --- / --- [email protected] --
------------- / http://herbert.the-little-red-haired-girl.org / -------------
=+=
My opinions may have changed, but not the fact that I am right.