mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2025-01-03 17:32:22 +00:00
echo is const.
This commit is contained in:
parent
ad523f258e
commit
a2a48fcba7
@ -175,7 +175,7 @@ namespace {
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Environment::echo(const char *fmt, ...) {
|
void Environment::echo(const char *fmt, ...) const {
|
||||||
if (_echo && !_startup) {
|
if (_echo && !_startup) {
|
||||||
for (unsigned i = 0; i < _indent; ++i) {
|
for (unsigned i = 0; i < _indent; ++i) {
|
||||||
fputc(' ', stderr);
|
fputc(' ', stderr);
|
||||||
|
@ -100,7 +100,7 @@ public:
|
|||||||
const_iterator find( const std::string & key ) const;
|
const_iterator find( const std::string & key ) const;
|
||||||
|
|
||||||
|
|
||||||
void echo(const char *format, ...);
|
void echo(const char *format, ...) const;
|
||||||
|
|
||||||
template<class FX>
|
template<class FX>
|
||||||
void indent_and(FX &&fx) {
|
void indent_and(FX &&fx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user