diff options
Diffstat (limited to 'kexi/plugins/macros/lib/action.cpp')
-rw-r--r-- | kexi/plugins/macros/lib/action.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kexi/plugins/macros/lib/action.cpp b/kexi/plugins/macros/lib/action.cpp index db5596b4..45c03d12 100644 --- a/kexi/plugins/macros/lib/action.cpp +++ b/kexi/plugins/macros/lib/action.cpp @@ -124,12 +124,12 @@ void Action::setComment(const TQString& comment) bool Action::hasVariable(const TQString& name) const { - return d->varmap.tqcontains(name); + return d->varmap.contains(name); } KSharedPtr<Variable> Action::variable(const TQString& name) const { - return d->varmap.tqcontains(name) ? d->varmap[name] : KSharedPtr<Variable>(0); + return d->varmap.contains(name) ? d->varmap[name] : KSharedPtr<Variable>(0); } Variable::Map Action::variables() const @@ -145,10 +145,10 @@ TQStringList Action::variableNames() const void Action::setVariable(KSharedPtr<Variable> variable) { const TQString name = variable->name(); - if(! d->varmap.tqcontains(name)) { + if(! d->varmap.contains(name)) { d->varnames.append(name); } - d->varmap.tqreplace(name, variable); + d->varmap.replace(name, variable); } void Action::setVariable(const TQString& name, const TQString& text, const TQVariant& variant) @@ -161,7 +161,7 @@ void Action::setVariable(const TQString& name, const TQString& text, const TQVar void Action::removeVariable(const TQString& name) { - if(d->varmap.tqcontains(name)) { + if(d->varmap.contains(name)) { d->varmap.remove(name); d->varnames.remove(name); } |