include missing initializations

an uninitialized variable can be the origin of several bugs.
unfortunately, not the one I suffer.

REVIEW: 106781
This commit is contained in:
Jaime Torres 2012-10-10 19:07:06 +02:00
parent 8aae14cde8
commit fe259f19bb
4 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,7 @@ public:
ContainmentActionsPrivate(KService::Ptr service, ContainmentActions *containmentActions) : ContainmentActionsPrivate(KService::Ptr service, ContainmentActions *containmentActions) :
q(containmentActions), q(containmentActions),
containmentActionsDescription(service), containmentActionsDescription(service),
package(0),
initialized(false), initialized(false),
needsConfig(false), needsConfig(false),
containment(0) containment(0)

View File

@ -44,7 +44,8 @@ public:
bottomMargin(0), bottomMargin(0),
noBorderPadding(false), noBorderPadding(false),
stretchBorders(false), stretchBorders(false),
tileCenter(false) tileCenter(false),
composeOverBorder(false)
{ {
ref(svg); ref(svg);
} }

View File

@ -38,6 +38,7 @@ class ClientPrivate : public QObject
public: public:
ClientPrivate(Client *client) ClientPrivate(Client *client)
: q(client), : q(client),
readerThread(0),
error(Client::NoError) {} error(Client::NoError) {}
public slots: public slots:

View File

@ -46,6 +46,7 @@ public:
DeclarativeWidgetPrivate(DeclarativeWidget *parent) DeclarativeWidgetPrivate(DeclarativeWidget *parent)
: q(parent), : q(parent),
engine(0), engine(0),
scriptEngine(0),
component(0), component(0),
root(0), root(0),
delay(false) delay(false)