mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2024-12-29 00:30:57 +00:00
echo is const.
This commit is contained in:
parent
ad523f258e
commit
a2a48fcba7
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user