diff options
Diffstat (limited to 'src/parser.yy')
-rw-r--r-- | src/parser.yy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.yy b/src/parser.yy index 4410843..b24dafb 100644 --- a/src/parser.yy +++ b/src/parser.yy @@ -148,7 +148,7 @@ S: SET FUNC ASSIGN EXP { if(manager->isFunction(funcName)) manager->removeFunction(funcName); - BaseFunction *newFn = new UserDefinedFunction(funcName, $4); + BaseFunction *newFn = new UserDefinedFunction(funcName.ascii(), $4); if(!manager->addFunction(newFn, ident)) { TQString s(i18n("Unable to define function %1 because it is recursive.").tqarg(funcName)); Result::setLastResult(s); @@ -170,7 +170,7 @@ S: SET IDENT ASSIGN EXP { // No need to check if the function is already defined, because the // lexer checked for us before returning the IDENT token. - BaseFunction *newFn = new UserDefinedFunction(funcName, $4); + BaseFunction *newFn = new UserDefinedFunction(funcName.ascii(), $4); FunctionManager::instance()->addFunction(newFn, ident); Result::setLastResult(Result::Null); |