From fce485e6a84cfec0b43167c033231e8bc83dcbd0 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 17 Feb 2021 13:27:34 -0800 Subject: [PATCH] Rename bufferCount_ to buffer_count_ fish uses snake case for naming. --- src/output.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/output.h b/src/output.h index e3d2d1c11..548ad352c 100644 --- a/src/output.h +++ b/src/output.h @@ -19,7 +19,7 @@ class outputter_t { std::string contents_; /// Count of how many outstanding begin_buffering() calls there are. - uint32_t bufferCount_{0}; + uint32_t buffer_count_{0}; /// fd to output to. int fd_{-1}; @@ -45,7 +45,7 @@ class outputter_t { /// Flush output, if we have a set fd and our buffering count is 0. void maybe_flush() { - if (fd_ >= 0 && bufferCount_ == 0) flush_to(fd_); + if (fd_ >= 0 && buffer_count_ == 0) flush_to(fd_); } public: @@ -94,14 +94,14 @@ class outputter_t { /// Begins buffering. Output will not be automatically flushed until a corresponding /// end_buffering() call. void begin_buffering() { - bufferCount_++; - assert(bufferCount_ > 0 && "bufferCount_ overflow"); + buffer_count_++; + assert(buffer_count_ > 0 && "bufferCount_ overflow"); } /// Balance a begin_buffering() call. void end_buffering() { - assert(bufferCount_ > 0 && "bufferCount_ underflow"); - bufferCount_--; + assert(buffer_count_ > 0 && "bufferCount_ underflow"); + buffer_count_--; maybe_flush(); }