char const * MacroData::MathMLtype() const
{
- return sym_ ? sym_->MathMLtype() : 0;
+ return sym_ ? sym_->MathMLtype() : nullptr;
}
// find macro template
Inset * inset = pos_.nextInset();
- if (inset == 0 || inset->lyxCode() != MATHMACRO_CODE) {
+ if (!inset || inset->lyxCode() != MATHMACRO_CODE) {
lyxerr << "BUG: No macro template found by MacroData" << endl;
return 0;
}
MacroData const * GlobalMacros::getMacro(docstring const & name) const
{
const_iterator it = find(name);
- return it == end() ? 0 : &it->second;
+ return it == end() ? nullptr : &it->second;
}