From: Thibaut Cuvelier Date: Sun, 25 Dec 2022 23:18:47 +0000 (+0100) Subject: Amend bc73a85778ffb1432bdc510d9a710e7394f42163 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2592a36dae5d18a16586b14b4d17948c8b53a382;p=features.git Amend bc73a85778ffb1432bdc510d9a710e7394f42163 Missing return in `specialCharKindToXMLEntity`. Previously, the functions that were merged into `specialCharKindToXMLEntity` did not return any kind of error in case an unknown special character is met (enumerated value). This behaviour is preserved. --- diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index 1dcc3daf50..bebf61a020 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -565,6 +565,8 @@ string specialCharKindToXMLEntity(InsetSpecialChar::Kind kind) { return "LaTeX2ε"; case InsetSpecialChar::Kind::PHRASE_LATEX: return "LaTeX"; + default: + return ""; } } }