From f7055674768fa7f0267da4a14b9061e60ebab3fc Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 31 Jan 2013 00:15:51 -0600 Subject: Rename KShared --- kexi/plugins/macros/lib/macroitem.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kexi/plugins/macros/lib/macroitem.cpp') diff --git a/kexi/plugins/macros/lib/macroitem.cpp b/kexi/plugins/macros/lib/macroitem.cpp index cf317fab..33e69c31 100644 --- a/kexi/plugins/macros/lib/macroitem.cpp +++ b/kexi/plugins/macros/lib/macroitem.cpp @@ -35,7 +35,7 @@ namespace KoMacro { /** * The @a Action this @a MacroItem has. */ - KSharedPtr action; + TDESharedPtr action; /** * The comment this @a MacroItem has. @@ -109,7 +109,7 @@ namespace KoMacro { } MacroItem::MacroItem() - : KShared() + : TDEShared() , d( new Private() ) { } @@ -129,29 +129,29 @@ void MacroItem::setComment(const TQString& comment) d->comment = comment; } -KSharedPtr MacroItem::action() const +TDESharedPtr MacroItem::action() const { return d->action; } -void MacroItem::setAction(KSharedPtr action) +void MacroItem::setAction(TDESharedPtr action) { d->action = action; } TQVariant MacroItem::variant(const TQString& name, bool checkaction) const { - KSharedPtr v = variable(name, checkaction); + TDESharedPtr v = variable(name, checkaction); return v.data() ? v->variant() : TQVariant(); } -KSharedPtr MacroItem::variable(const TQString& name, bool checkaction) const +TDESharedPtr MacroItem::variable(const TQString& name, bool checkaction) const { if(d->variables.contains(name)) return d->variables[name]; if(checkaction && d->action.data()) return d->action->variable(name); - return KSharedPtr(0); + return TDESharedPtr(0); } Variable::Map MacroItem::variables() const @@ -163,7 +163,7 @@ bool MacroItem::setVariant(const TQString& name, const TQVariant& variant) { // Let's look if there is an action defined for the variable. If that's // the case, we try to use that action to preserve the type of the variant. - KSharedPtr actionvariable = d->action ? d->action->variable(name) : KSharedPtr(0); + TDESharedPtr actionvariable = d->action ? d->action->variable(name) : TDESharedPtr(0); // If we know the expected type, we try to cast the variant to the expected // type else the variant stays untouched (so, it will stay a string). @@ -172,12 +172,12 @@ bool MacroItem::setVariant(const TQString& name, const TQVariant& variant) : variant; // don't cast anything, just leave the string-type... // Now let's try to determinate the variable which should be changed. - KSharedPtr variable = d->variables[name]; + TDESharedPtr variable = d->variables[name]; if(! variable.data()) { // if there exists no such variable yet, create one. kdDebug() << "MacroItem::setVariable() Creating new variable name=" << name << endl; - variable = KSharedPtr( new Variable() ); + variable = TDESharedPtr( new Variable() ); variable->setName(name); d->variables.replace(name, variable); } @@ -201,11 +201,11 @@ bool MacroItem::setVariant(const TQString& name, const TQVariant& variant) return true; } -KSharedPtr MacroItem::addVariable(const TQString& name, const TQVariant& variant) +TDESharedPtr MacroItem::addVariable(const TQString& name, const TQVariant& variant) { Q_ASSERT(! d->variables.contains(name) ); // Create a new Variable. - KSharedPtr variable = KSharedPtr( new Variable() ); + TDESharedPtr variable = TDESharedPtr( new Variable() ); variable->setName(name); // Put it into the Variable-map. -- cgit v1.2.1