From 2c82d91b8c5ac4b7b5813a8c09b130e12180974c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Nov 2011 22:50:47 -0600 Subject: Fix FTBFS --- src/parser.yy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parser.yy') 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); -- cgit v1.2.1