Skip to content

Commit

Permalink
Revert "tweak"
Browse files Browse the repository at this point in the history
This reverts commit b77be0e.
  • Loading branch information
philip82148 committed May 11, 2024
1 parent 98a85ee commit b25f100
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dump.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void cpp_dump_macro(
std::string log_label =
log_label_func ? log_label_func(loc.file_name, loc.line, loc.function_name) : "";

std::string output;
std::string output = "";
if (!_dump(output, log_label, true, exprs, args...)) {
output = "";
_dump(output, log_label, false, exprs, args...);
Expand Down
2 changes: 1 addition & 1 deletion hpp/escape_sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace es {

inline std::string apply(const std::string &es, const std::string &s) {
if (use_es()) {
auto reset = "\x1b[0m";
const std::string reset = "\x1b[0m";
return reset + es + s + reset;
} else {
return s;
Expand Down
2 changes: 1 addition & 1 deletion hpp/export_var/export_arithmetic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export_arithmetic(bool value, const std::string &, std::size_t, std::size_t, boo

inline std::string
export_arithmetic(char value, const std::string &, std::size_t, std::size_t, bool, const export_command &) {
return es::character("'" + std::string({value}) + "'");
return es::character("'" + std::string{value} + "'");
}

template <typename T>
Expand Down
2 changes: 1 addition & 1 deletion hpp/options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace cpp_dump {
* Set a value to a variable in cpp_dump namespace.
* You can also assign values to the variables directly.
*/
#define CPP_DUMP_SET_OPTION(variable, value) cpp_dump::variable = (value)
#define CPP_DUMP_SET_OPTION(variable, value) cpp_dump::variable = value

/**
* Type of cpp_dump::es_style.
Expand Down

0 comments on commit b25f100

Please sign in to comment.