Skip to content

Commit

Permalink
src: use default initializers over settings fields on the constructor
Browse files Browse the repository at this point in the history
PR-URL: #23532
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
andrewjdmccann authored and MylesBorins committed Nov 29, 2018
1 parent 3c5d312 commit b258b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/spawn_sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ using v8::String;
using v8::Value;


SyncProcessOutputBuffer::SyncProcessOutputBuffer()
: used_(0),
next_(nullptr) {
SyncProcessOutputBuffer::SyncProcessOutputBuffer() {
}


Expand Down
4 changes: 2 additions & 2 deletions src/spawn_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ class SyncProcessOutputBuffer {
private:
// Use unsigned int because that's what `uv_buf_init` takes.
mutable char data_[kBufferSize];
unsigned int used_;
unsigned int used_ = 0;

SyncProcessOutputBuffer* next_;
SyncProcessOutputBuffer* next_ = nullptr;
};


Expand Down

0 comments on commit b258b37

Please sign in to comment.