commit 87f08ce2ba91a4f910819a0af215fc02173a03c6 Author: Thibaut Cuvelier <tcuvel...@lyx.org> Date: Thu Feb 6 23:42:39 2025 +0100
`latexkeys::mathml_type` now returns an `std::string`. Avoiding C strings removes the needs for old C functions that caused compilation problems, see mailing list (https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg223562.html). --- src/mathed/MathParser.cpp | 2 +- src/mathed/MathParser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index 8ab1ebed58..c546b0a9d3 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -2142,7 +2142,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags, // FIXME This will likely need some work. -char const * latexkeys::mathml_type() const +std::string latexkeys::mathml_type() const { // Consider as identifier (mml:mi): ordinary and alphabetical characters. if (extra == "mathord" || extra == "mathalpha") diff --git a/src/mathed/MathParser.h b/src/mathed/MathParser.h index 33513dd1cb..8ff428ee2c 100644 --- a/src/mathed/MathParser.h +++ b/src/mathed/MathParser.h @@ -33,7 +33,7 @@ public: /// latexkeys() : hidden(false) {} /// - char const * mathml_type() const; + std::string mathml_type() const; /// name of the macro or primitive docstring name; /// name of an inset that handles that macro -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs