]> git.lyx.org Git - lyx.git/commit
Do not use lyxerr in from_ascii(char const *)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 9 Sep 2024 10:08:23 +0000 (12:08 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 9 Sep 2024 13:08:36 +0000 (15:08 +0200)
commited291f0d4fbc778229840a9ad830c2481aa60bbd
tree49e6371f1a7821564efd22f5bd9e96f6d2bdf153
parentf725abea051b54e2c41b71a6a98405babae316a7
Do not use lyxerr in from_ascii(char const *)

This function is used a lot to initialize static docstrings. This is
an issue in theory because lyxerr may not have been initialized in
time.

In practice of course, lyxerr will only be used when there is a
non-ascii character in the parameter, which is really not supposed to
happen.

This gets rid of 75 coverity reports.
src/support/docstring.cpp
src/support/lassert.cpp
src/support/lassert.h