forked from ShuriZma/suyu
1
0
Fork 0

Merge pull request #359 from lioncash/redundant

vi: Remove redundant initializers in the constructors
This commit is contained in:
bunnei 2018-04-19 22:16:17 -04:00 committed by GitHub
commit 14bf88a777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 9 deletions

View File

@ -150,7 +150,7 @@ private:
class NativeWindow : public Parcel { class NativeWindow : public Parcel {
public: public:
explicit NativeWindow(u32 id) : Parcel() { explicit NativeWindow(u32 id) {
data.id = id; data.id = id;
} }
~NativeWindow() override = default; ~NativeWindow() override = default;
@ -197,7 +197,7 @@ public:
class IGBPConnectResponseParcel : public Parcel { class IGBPConnectResponseParcel : public Parcel {
public: public:
explicit IGBPConnectResponseParcel(u32 width, u32 height) : Parcel() { explicit IGBPConnectResponseParcel(u32 width, u32 height) {
data.width = width; data.width = width;
data.height = height; data.height = height;
} }
@ -247,10 +247,6 @@ public:
}; };
class IGBPSetPreallocatedBufferResponseParcel : public Parcel { class IGBPSetPreallocatedBufferResponseParcel : public Parcel {
public:
IGBPSetPreallocatedBufferResponseParcel() : Parcel() {}
~IGBPSetPreallocatedBufferResponseParcel() override = default;
protected: protected:
void SerializeData() override { void SerializeData() override {
// TODO(Subv): Find out what this means // TODO(Subv): Find out what this means
@ -289,7 +285,7 @@ static_assert(sizeof(BufferProducerFence) == 36, "BufferProducerFence has wrong
class IGBPDequeueBufferResponseParcel : public Parcel { class IGBPDequeueBufferResponseParcel : public Parcel {
public: public:
explicit IGBPDequeueBufferResponseParcel(u32 slot) : Parcel(), slot(slot) {} explicit IGBPDequeueBufferResponseParcel(u32 slot) : slot(slot) {}
~IGBPDequeueBufferResponseParcel() override = default; ~IGBPDequeueBufferResponseParcel() override = default;
protected: protected:
@ -383,7 +379,7 @@ public:
class IGBPQueueBufferResponseParcel : public Parcel { class IGBPQueueBufferResponseParcel : public Parcel {
public: public:
explicit IGBPQueueBufferResponseParcel(u32 width, u32 height) : Parcel() { explicit IGBPQueueBufferResponseParcel(u32 width, u32 height) {
data.width = width; data.width = width;
data.height = height; data.height = height;
} }
@ -424,7 +420,7 @@ public:
class IGBPQueryResponseParcel : public Parcel { class IGBPQueryResponseParcel : public Parcel {
public: public:
explicit IGBPQueryResponseParcel(u32 value) : Parcel(), value(value) {} explicit IGBPQueryResponseParcel(u32 value) : value(value) {}
~IGBPQueryResponseParcel() override = default; ~IGBPQueryResponseParcel() override = default;
protected: protected: