Merge pull request #69098 from MaxKellermann/common_options__long_desc__c_string

common/options: convert `long_desc` to C string
This commit is contained in:
SrinivasaBharathKanta 2026-07-29 05:23:55 +05:30 committed by GitHub
commit 0718de9184
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -333,7 +333,7 @@ void Option::print(ostream *out) const
*out << " See also: " << see_also << "\n";
}
if (long_desc.size()) {
if (*long_desc != '\0') {
*out << "\n" << long_desc << "\n";
}
}

View File

@ -167,7 +167,7 @@ struct Option {
const level_t level;
std::string desc;
std::string long_desc;
const char *long_desc = "";
unsigned flags = 0;