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/xmlhandler.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kexi/plugins/macros/lib/xmlhandler.cpp') diff --git a/kexi/plugins/macros/lib/xmlhandler.cpp b/kexi/plugins/macros/lib/xmlhandler.cpp index 5b53d51b9..65f1a4cf0 100644 --- a/kexi/plugins/macros/lib/xmlhandler.cpp +++ b/kexi/plugins/macros/lib/xmlhandler.cpp @@ -99,7 +99,7 @@ bool XMLHandler::parseXML(const TQDomElement& element) const TQDomElement itemelem = itemnode.toElement(); // Create a new MacroItem - KSharedPtr item = new MacroItem(); + TDESharedPtr item = new MacroItem(); // Add the new item to our Macro. d->macro->addItem( item ); @@ -107,7 +107,7 @@ bool XMLHandler::parseXML(const TQDomElement& element) // Each MacroItem may point to an Action instance. We // try to determinate this action now and if it's defined // and available, we set it. - KSharedPtr action = Manager::self()->action( itemelem.attribute("action") ); + TDESharedPtr action = Manager::self()->action( itemelem.attribute("action") ); if(action.data()) { item->setAction(action); } @@ -157,14 +157,14 @@ TQDomElement XMLHandler::toXML() //macroelem.setAttribute("name",d->macro->name()); // The list of MacroItem-children a Macro provides. - TQValueList > items = d->macro->items(); + TQValueList > items = d->macro->items(); // Create an iterator... - TQValueList >::ConstIterator it(items.constBegin()), end(items.constEnd()); + TQValueList >::ConstIterator it(items.constBegin()), end(items.constEnd()); // ...and iterate over the list of children the Macro provides. for(;it != end; ++it) { // We are iterating over MacroItem instances. - KSharedPtr item = *it; + TDESharedPtr item = *it; // Flag to determinate if we really need to remember this item what // is only the case if comment or action is defined. @@ -174,7 +174,7 @@ TQDomElement XMLHandler::toXML() TQDomElement itemelem = document.createElement("item"); // Each MacroItem could point to an Action provided by the Manager. - const KSharedPtr action = item->action(); + const TDESharedPtr action = item->action(); if( action ) { append = true; @@ -184,10 +184,10 @@ TQDomElement XMLHandler::toXML() // Each MacroItem could have a list of variables. We // iterate through that list and build a element // for each single variable. - TQMap > varmap = item->variables(); + TQMap > varmap = item->variables(); - for(TQMap >::ConstIterator vit = varmap.constBegin(); vit != varmap.constEnd(); ++vit) { - const KSharedPtr v = vit.data(); + for(TQMap >::ConstIterator vit = varmap.constBegin(); vit != varmap.constEnd(); ++vit) { + const TDESharedPtr v = vit.data(); if(! v.data()) { // skip if the variable is NULL. continue; -- cgit v1.2.3