camelCase to snake_case a function name

This commit is contained in:
ridiculousfish 2020-08-23 03:38:25 -07:00
parent 073334f307
commit eac0f35413
2 changed files with 7 additions and 7 deletions

View file

@ -18,7 +18,7 @@ class outputter_t {
/// Storage for buffered contents.
std::string contents_;
/// Count of how many outstanding beginBuffering() calls there are.
/// Count of how many outstanding begin_buffering() calls there are.
uint32_t bufferCount_{0};
/// fd to output to.
@ -84,14 +84,14 @@ class outputter_t {
void flush_to(int fd);
/// Begins buffering. Output will not be automatically flushed until a corresponding
/// endBuffering() call.
void beginBuffering() {
/// end_buffering() call.
void begin_buffering() {
bufferCount_++;
assert(bufferCount_ > 0 && "bufferCount_ overflow");
}
/// Balance a beginBuffering() call.
void endBuffering() {
/// Balance a begin_buffering() call.
void end_buffering() {
assert(bufferCount_ > 0 && "bufferCount_ underflow");
bufferCount_--;
maybe_flush();

View file

@ -53,9 +53,9 @@ class scoped_buffer_t {
screen_t &screen_;
public:
explicit scoped_buffer_t(screen_t &s) : screen_(s) { screen_.outp().beginBuffering(); }
explicit scoped_buffer_t(screen_t &s) : screen_(s) { screen_.outp().begin_buffering(); }
~scoped_buffer_t() { screen_.outp().endBuffering(); }
~scoped_buffer_t() { screen_.outp().end_buffering(); }
};
// Singleton of the cached escape sequences seen in prompts and similar strings.