[muparser] Clean up ParserCallback interface

Remove Clone() method and mark some functions as defaulted.
This commit is contained in:
ridiculousfish
2017-11-22 13:40:49 -08:00
parent 9443a4bf2d
commit c4c89dff4e
3 changed files with 3 additions and 17 deletions

View File

@@ -46,7 +46,7 @@ namespace mu {
\author (C) 2004-2011 Ingo Berg
*/
class ParserCallback {
class ParserCallback final {
public:
ParserCallback(fun_type0 a_pFun, bool a_bAllowOpti);
ParserCallback(fun_type1 a_pFun, bool a_bAllowOpti, int a_iPrec = -1,
@@ -70,8 +70,6 @@ class ParserCallback {
ParserCallback();
ParserCallback(const ParserCallback& a_Fun);
ParserCallback* Clone() const;
bool IsOptimizable() const;
void* GetAddr() const;
ECmdCode GetCode() const;