indentlog: refactor: color_on() uses color_spec
This commit is contained in:
parent
a9777a7ddf
commit
dfc84d5fde
2 changed files with 4 additions and 4 deletions
|
|
@ -169,8 +169,8 @@ namespace xo {
|
|||
} /*color_on_xterm*/
|
||||
|
||||
inline color_impl<int>
|
||||
color_on(color_encoding encoding, std::uint32_t color) {
|
||||
return color_impl<int>(CF_ColorOn, color_spec(encoding, color), 0);
|
||||
color_on(color_spec spec) {
|
||||
return color_impl<int>(CF_ColorOn, spec, 0);
|
||||
} /*color_on*/
|
||||
|
||||
inline color_impl<int>
|
||||
|
|
|
|||
|
|
@ -256,13 +256,13 @@ namespace xo {
|
|||
os << "[" << with_color(color_spec(fn.encoding(), fn.color()), fn.pretty()) << "]";
|
||||
break;
|
||||
case FS_Simple:
|
||||
os << color_on(fn.encoding(), fn.color());
|
||||
os << color_on(color_spec(fn.encoding(), fn.color()));
|
||||
function_name::print_simple(os, fn.pretty());
|
||||
os << color_off();
|
||||
break;
|
||||
case FS_Streamlined:
|
||||
/* omit namespace qualifiers and template arguments */
|
||||
os << color_on(fn.encoding(), fn.color());
|
||||
os << color_on(color_spec(fn.encoding(), fn.color()));
|
||||
function_name::print_streamlined(os, fn.pretty());
|
||||
os << color_off();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue