diff options
Diffstat (limited to 'src/function.cpp')
-rw-r--r-- | src/function.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/function.cpp b/src/function.cpp index a61b8f9..9cab08a 100644 --- a/src/function.cpp +++ b/src/function.cpp @@ -89,8 +89,8 @@ bool FunctionManager::addFunction(const TQString &name, function_t fn, const TQS newFn->description = desc; newFn->fn = fn; newFn->userDefined = false; - newFn->returnsTrig = fnName.tqcontains(returnTrigRE); - newFn->needsTrig = fnName.tqcontains(needsTrigRE); + newFn->returnsTrig = fnName.contains(returnTrigRE); + newFn->needsTrig = fnName.contains(needsTrigRE); m_dict.insert(name, newFn); @@ -179,10 +179,10 @@ bool FunctionManager::addFunction(BaseFunction *fn, const TQString &dependantVar fnTabEntry->needsTrig = false; fnTabEntry->userDefined = true; - if(m_dict.tqfind(fn->name())) + if(m_dict.find(fn->name())) emit signalFunctionRemoved(fn->name()); - m_dict.tqreplace(fn->name(), fnTabEntry); + m_dict.replace(fn->name(), fnTabEntry); emit signalFunctionAdded(fn->name()); return true; |