diff options
author | David Robillard <d@drobilla.net> | 2024-06-04 15:08:23 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-06-04 15:08:23 -0400 |
commit | d7aa17453b84ecd2bf3d8eb411858d174c963226 (patch) | |
tree | e2dc4adfd011df06cb52bb257b57f0094d14cfed /src | |
parent | 77539f23febc306f3ae444df899ee4fa59b5aa17 (diff) | |
download | ingen-d7aa17453b84ecd2bf3d8eb411858d174c963226.tar.gz ingen-d7aa17453b84ecd2bf3d8eb411858d174c963226.tar.bz2 ingen-d7aa17453b84ecd2bf3d8eb411858d174c963226.zip |
Avoid std::endl
Diffstat (limited to 'src')
-rw-r--r-- | src/Configuration.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 99675c7b..ac2b374b 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -121,10 +121,10 @@ Configuration::variable_string(LV2_URID type) const void Configuration::print_usage(const std::string& program, std::ostream& os) { - os << "Usage: " << program << " [OPTION]... [GRAPH]" << std::endl; - os << _shortdesc << std::endl << std::endl; - os << _desc << std::endl << std::endl; - os << "Options:" << std::endl; + os << "Usage: " << program << " [OPTION]... [GRAPH]\n"; + os << _shortdesc << "\n\n"; + os << _desc << "\n\n"; + os << "Options:\n"; for (const auto& o : _options) { const Option& option = o.second; os << " "; @@ -136,7 +136,7 @@ Configuration::print_usage(const std::string& program, std::ostream& os) os.width(static_cast<std::streamsize>(_max_name_length + 11)); os << std::left; os << (std::string("--") + o.first + variable_string(option.type)); - os << option.desc << std::endl; + os << option.desc << "\n"; } } |