mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Add comments to fix coverity #23505 and 23507.
This commit is contained in:
parent
4152c68c66
commit
e622f82521
@ -223,6 +223,8 @@ docstring ListingsParam::validate(string const & par) const
|
||||
return bformat(_("Try one of %1$s."), from_utf8(info_));
|
||||
else
|
||||
return bformat(_("I guess you mean %1$s."), from_utf8(matching_names));
|
||||
// this stifles a warning but upsets coverity
|
||||
// coverity[UNREACHABLE]
|
||||
return docstring();
|
||||
}
|
||||
case SUBSETOF:
|
||||
@ -685,6 +687,8 @@ docstring ParValidator::validate(string const & name,
|
||||
return bformat(_("Parameters starting with '%1$s': %2$s"),
|
||||
from_utf8(name), from_utf8(matching_names));
|
||||
}
|
||||
// this stifles a warning but upsets coverity
|
||||
// coverity[UNREACHABLE]
|
||||
return docstring();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user