echo is const.

This commit is contained in:
Kelvin Sherlock 2016-07-28 13:42:29 -04:00
parent ad523f258e
commit a2a48fcba7
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ namespace {
return i;
}
void Environment::echo(const char *fmt, ...) {
void Environment::echo(const char *fmt, ...) const {
if (_echo && !_startup) {
for (unsigned i = 0; i < _indent; ++i) {
fputc(' ', stderr);

View File

@ -100,7 +100,7 @@ public:
const_iterator find( const std::string & key ) const;
void echo(const char *format, ...);
void echo(const char *format, ...) const;
template<class FX>
void indent_and(FX &&fx) {