Reduce code duplication.

This commit is contained in:
Thibaut Cuvelier 2024-03-10 16:55:12 +01:00
parent ada52e014e
commit 1680eaf5f0

View 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));
}