Skip to content

Commit

Permalink
Rename log_operation enumerations
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmiddleditch committed Mar 3, 2019
1 parent 1ffeb40 commit c5d5782
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/logxx/logger_splitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace logxx {

log_operation handle(log_message const& message) override {
log_operation op = _first.handle(message);
if (op != log_operation::proceed) {
if (op != log_operation::op_continue) {
return op;
}
return _second.handle(message);
Expand Down
4 changes: 2 additions & 2 deletions include/logxx/logxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ namespace logxx {
};

enum class log_operation {
proceed,
stop
op_continue = 0,
op_break
};

class string_view final {
Expand Down
2 changes: 1 addition & 1 deletion source/logger_ostream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ auto logxx::logger_ostream::handle(log_message const& message) -> log_operation
_stream << std::flush;
}

return log_operation::proceed;
return log_operation::op_continue;
}
2 changes: 1 addition & 1 deletion source/logger_outputdebugstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ auto logxx::logger_outputdebugstring::handle(log_message const& message) -> log_
buffer[sizeof(buffer) - 1] = 0;
OutputDebugStringA(buffer);

return log_operation::proceed;
return log_operation::op_continue;
}
2 changes: 1 addition & 1 deletion source/logger_stdio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ auto logxx::logger_stdio::handle(log_message const& message) -> log_operation {
fflush(_file);
}

return log_operation::proceed;
return log_operation::op_continue;
}

0 comments on commit c5d5782

Please sign in to comment.