From 2592a36dae5d18a16586b14b4d17948c8b53a382 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Mon, 26 Dec 2022 00:18:47 +0100 Subject: [PATCH] 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. --- src/insets/InsetSpecialChar.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ""; } } }