mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
properly initialize QDBusArgumentPrivate::direction member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
74b79cebd3
commit
b85095d056
1 changed files with 14 additions and 10 deletions
|
@ -57,8 +57,13 @@ class QDBusDemarshaller;
|
|||
class QDBusArgumentPrivate
|
||||
{
|
||||
public:
|
||||
inline QDBusArgumentPrivate(int flags = 0)
|
||||
: message(0), ref(1), capabilities(flags)
|
||||
enum Direction {
|
||||
Marshalling,
|
||||
Demarshalling
|
||||
};
|
||||
|
||||
inline QDBusArgumentPrivate(Direction direct, int cap)
|
||||
: message(Q_NULLPTR), ref(1), direction(direct), capabilities(cap)
|
||||
{ }
|
||||
~QDBusArgumentPrivate();
|
||||
|
||||
|
@ -81,18 +86,16 @@ public:
|
|||
public:
|
||||
DBusMessage *message;
|
||||
QAtomicInt ref;
|
||||
Direction direction;
|
||||
int capabilities;
|
||||
enum Direction {
|
||||
Marshalling,
|
||||
Demarshalling
|
||||
} direction;
|
||||
};
|
||||
|
||||
class QDBusMarshaller: public QDBusArgumentPrivate
|
||||
{
|
||||
public:
|
||||
QDBusMarshaller(int flags) : QDBusArgumentPrivate(flags), parent(0), ba(0), closeCode(0), ok(true)
|
||||
{ direction = Marshalling; }
|
||||
QDBusMarshaller(int flags) : QDBusArgumentPrivate(Marshalling, flags),
|
||||
parent(Q_NULLPTR), ba(Q_NULLPTR), closeCode(0), ok(true)
|
||||
{ }
|
||||
~QDBusMarshaller();
|
||||
|
||||
QString currentSignature();
|
||||
|
@ -146,8 +149,9 @@ private:
|
|||
class QDBusDemarshaller: public QDBusArgumentPrivate
|
||||
{
|
||||
public:
|
||||
inline QDBusDemarshaller(int flags) : QDBusArgumentPrivate(flags), parent(0)
|
||||
{ direction = Demarshalling; }
|
||||
inline QDBusDemarshaller(int flags) : QDBusArgumentPrivate(Demarshalling, flags),
|
||||
parent(Q_NULLPTR)
|
||||
{ }
|
||||
~QDBusDemarshaller();
|
||||
|
||||
QString currentSignature();
|
||||
|
|
Loading…
Add table
Reference in a new issue