Re: Compiling without warnings issues

Hi Peter,

I am not really sure if I understood it right. But yes, it looks strange for me.

Once I was working with BounceChecker and it was always complaining about a missing default construter.

It is the same logic but only it was a struct:

class Data: public PacketBase::Data
{
Q_SHARED_DATA_COPY (Data);
public:
quint16 port;
QHostAddress ipAddress;
quint32 speed;
ResultSet resultSet;
QueryHitsData queryHitsData;
};

Maybe the compiler is complaining about a missing destructor in this class.

Data::Data()
: port(0), speed(0)
{}

Regards,
Markus

Would you like to post a relpy?


This post is a reply to:
Re: Compiling without warnings issues
Dear all, Here is the continuation of my post on compiler warnings, this time regarding adding default ctors and initializing all of the members in the initializer list. In general that's (more...)

Follow-ups:
Re: Compiling without warnings issues
Hi Markus, Yes, it's complaining about the missing default ctor of Data. But if i add it, I end up with two ctors that are virtually the same and in effect (more...)
Re: Compiling without warnings issues
Hm, I meant construtor and not destructor. :-(