Skip to content
Permalink
Browse files

src: use default initializers over settings fields on the constructor

PR-URL: #23532
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
andrewjdmccann authored and MylesBorins committed Oct 12, 2018
1 parent 3c5d312 commit b258b377db2f3fc1750372660c443e52109ba270
Showing with 3 additions and 5 deletions.
  1. +1 −3 src/spawn_sync.cc
  2. +2 −2 src/spawn_sync.h
@@ -50,9 +50,7 @@ using v8::String;
using v8::Value;


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


@@ -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;
};


0 comments on commit b258b37

Please sign in to comment.
You can’t perform that action at this time.