Internals: Cleanup some string/model constructors. No functional change.

This commit is contained in:
Wilson Snyder
2022-08-29 23:50:32 -04:00
parent 8658a0d7dc
commit 6a5f77b278
42 changed files with 73 additions and 69 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ V3OptionParser::ActionIfs* V3OptionParser::find(const char* optp) {
if (act.second->isOnOffAllowed()) { // Find starts with "-no"
if (const char* const nop
= VString::startsWith(optp, "-no") ? (optp + strlen("-no")) : nullptr) {
if (act.first == nop || act.first == (string{"-"} + nop)) {
if (act.first == nop || act.first == (std::string{"-"} + nop)) {
return act.second.get();
}
}