summaryrefslogtreecommitdiffstats
path: root/src/parser.yy
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-27 22:50:47 -0600
committerSlávek Banko <[email protected]>2012-07-29 19:24:38 +0200
commitb163211001db812c1e19afa9fa89cbc251132221 (patch)
tree2cbe2037acbcc53b955e51070d2e8a01844c36cd /src/parser.yy
parent2016ba9b1ccbef2178c87f7694ccbcd00b492a67 (diff)
downloadabakus-b163211001db812c1e19afa9fa89cbc251132221.tar.gz
abakus-b163211001db812c1e19afa9fa89cbc251132221.zip
Fix FTBFS
(cherry picked from commit 2c82d91b8c5ac4b7b5813a8c09b130e12180974c)
Diffstat (limited to 'src/parser.yy')
-rw-r--r--src/parser.yy4
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);