From 3b1b5b30ca9fd0dd96607011e32f292056103527 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 22 Nov 2017 13:46:29 -0800 Subject: [PATCH] [muparser] Clean up ParserToken::GetFuncAddr --- muparser-2.2.5/include/muParserToken.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/muparser-2.2.5/include/muParserToken.h b/muparser-2.2.5/include/muParserToken.h index 111e3e7fe..b98c4cb89 100644 --- a/muparser-2.2.5/include/muParserToken.h +++ b/muparser-2.2.5/include/muParserToken.h @@ -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: - - \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; } //------------------------------------------------------------------------------