xo-indentlog: fix: print_with_escapes() static to appease osx build

This commit is contained in:
Roland Conybeare 2024-08-05 14:26:09 -04:00
commit 0fef9b03e3

View file

@ -35,8 +35,8 @@ namespace xo {
bool unq_flag() const { return unq_flag_; } bool unq_flag() const { return unq_flag_; }
T const & value() const { return value_; } T const & value() const { return value_; }
void print_with_escapes(const std::string & xs, static void print_with_escapes(const std::string & xs,
std::ostream & os) const std::ostream & os)
{ {
/* printed value contains a space /* printed value contains a space
* and/or a must-be-escaped character. * and/or a must-be-escaped character.
@ -97,7 +97,7 @@ namespace xo {
else else
os << "\"" << xs << "\""; os << "\"" << xs << "\"";
} else { } else {
this->print_with_escapes(xs, os); print_with_escapes(xs, os);
} }
} /*print*/ } /*print*/