From: Thibaut Cuvelier Date: Sun, 10 Mar 2024 15:55:12 +0000 (+0100) Subject: Reduce code duplication. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1680eaf5f0edeed089e2bdc2b539b80187b88d3c;p=features.git Reduce code duplication. --- diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp index daf171981f..22124cc13d 100644 --- a/src/mathed/MathExtern.cpp +++ b/src/mathed/MathExtern.cpp @@ -630,7 +630,7 @@ bool testSymbol(MathAtom const & at, docstring const & name) bool testSymbol(MathAtom const & at, char const * const name) { - return at->asSymbolInset() && at->asSymbolInset()->name() == from_ascii(name); + return testSymbol(at, from_ascii(name)); }