Commit baf4c503 authored by Laurent Montel's avatar Laurent Montel 😁

initialize variable in constructor

parent 1f1f2580
......@@ -24,6 +24,15 @@ using namespace MessageComposer;
class GlobalPart::Private
{
public:
Private()
: guiEnabled(true),
parentWidgetForGui(0),
fallbackCharsetEnabled(false),
allow8Bit(false),
MDNRequested(false)
{
}
bool guiEnabled;
QWidget *parentWidgetForGui;
bool fallbackCharsetEnabled;
......@@ -36,11 +45,6 @@ GlobalPart::GlobalPart( QObject *parent )
: MessagePart( parent )
, d( new Private )
{
d->guiEnabled = true;
d->parentWidgetForGui = 0;
d->fallbackCharsetEnabled = false;
d->allow8Bit = false;
d->MDNRequested = false;
}
GlobalPart::~GlobalPart()
......
......@@ -24,6 +24,13 @@ using namespace MessageComposer;
class InfoPart::Private
{
public:
Private()
: transportId(0),
urgent(false)
{
}
QString from;
QStringList to;
QStringList cc;
......@@ -43,8 +50,6 @@ InfoPart::InfoPart( QObject *parent )
: MessagePart( parent )
, d( new Private )
{
d->transportId = 0;
d->urgent = false;
}
InfoPart::~InfoPart()
......
......@@ -25,6 +25,13 @@ using namespace MessageComposer;
class TextPart::Private
{
public:
Private()
: wordWrappingEnabled(true),
warnBadCharset(true)
{
}
bool wordWrappingEnabled;
bool warnBadCharset;
QString cleanPlainText;
......@@ -37,8 +44,6 @@ TextPart::TextPart( QObject *parent )
: MessagePart( parent )
, d( new Private )
{
d->wordWrappingEnabled = true;
d->warnBadCharset = true;
}
TextPart::~TextPart()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment