diff options
Diffstat (limited to 'kexi/plugins/macros/lib/context.cpp')
-rw-r--r-- | kexi/plugins/macros/lib/context.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kexi/plugins/macros/lib/context.cpp b/kexi/plugins/macros/lib/context.cpp index 6e2fb2e4..7c0b6ee8 100644 --- a/kexi/plugins/macros/lib/context.cpp +++ b/kexi/plugins/macros/lib/context.cpp @@ -100,14 +100,14 @@ Context::~Context() bool Context::hasVariable(const TQString& name) const { //Use TQMap?s contains to check if a variable with name exists - return d->variables.tqcontains(name); + return d->variables.contains(name); } //return variable with name or throw an exception if none is found in variables KSharedPtr<Variable> Context::variable(const TQString& name) const { //Use TQMap?s contains to check if a variable with name exists in context - if (d->variables.tqcontains(name)) { + if (d->variables.contains(name)) { //return it return d->variables[name]; } @@ -134,7 +134,7 @@ void Context::setVariable(const TQString& name, KSharedPtr<Variable> variable) //debuging infos kdDebug() << TQString("KoMacro::Context::setVariable name='%1' variable='%2'").tqarg(name).tqarg(variable->toString()) << endl; //Use TQMap?s replace to set/replace the variable named name - d->variables.tqreplace(name, variable); + d->variables.replace(name, variable); } //return the associated Macro @@ -252,7 +252,7 @@ void Context::activateNext() } //find the macroitem from which to continue - TQValueList<KSharedPtr<MacroItem > >::ConstIterator it = d->items.tqfind(d->macroitem); + TQValueList<KSharedPtr<MacroItem > >::ConstIterator it = d->items.find(d->macroitem); if (it != d->items.constEnd()) { activate(++it); // try to continue the execution. } |