[muparser] Clean up ParserToken::GetFuncAddr

This commit is contained in:
ridiculousfish 2017-11-22 13:46:29 -08:00
parent c4c89dff4e
commit 3b1b5b30ca

View file

@ -282,18 +282,9 @@ class ParserToken {
function and operator tokens.
\return The pointer stored in #m_pTok.
\throw exception_type if token type is non of:
<ul>
<li>cmFUNC</li>
<li>cmSTRFUNC</li>
<li>cmPOSTOP</li>
<li>cmINFIXOP</li>
<li>cmOPRT_BIN</li>
</ul>
\sa ECmdCode
*/
generic_fun_type GetFuncAddr() const {
return (m_pCallback.get()) ? (generic_fun_type)m_pCallback->GetAddr() : 0;
return m_pCallback ? (generic_fun_type)m_pCallback->GetAddr() : nullptr;
}
//------------------------------------------------------------------------------