]> git.lyx.org Git - lyx.git/commitdiff
Reduce code duplication.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sun, 10 Mar 2024 15:55:12 +0000 (16:55 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sun, 10 Mar 2024 15:58:45 +0000 (16:58 +0100)
src/mathed/MathExtern.cpp

index daf171981f3fdb07bfee3b4a7f0006dfbae183b1..22124cc13d4a6e68888064167c83fe4c7e00a418 100644 (file)
@@ -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));
 }