mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
[muparser] Clean up ParserToken::GetFuncAddr
This commit is contained in:
parent
c4c89dff4e
commit
3b1b5b30ca
1 changed files with 1 additions and 10 deletions
|
@ -282,18 +282,9 @@ class ParserToken {
|
||||||
function and operator tokens.
|
function and operator tokens.
|
||||||
|
|
||||||
\return The pointer stored in #m_pTok.
|
\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 {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue