diff options
Diffstat (limited to 'noatun-plugins/oblique/query.cpp')
-rw-r--r-- | noatun-plugins/oblique/query.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/noatun-plugins/oblique/query.cpp b/noatun-plugins/oblique/query.cpp index dd73d66..d53437e 100644 --- a/noatun-plugins/oblique/query.cpp +++ b/noatun-plugins/oblique/query.cpp @@ -283,10 +283,10 @@ Query &Query::operator =(const Query ©) if (© == this) return *this; delete mGroupFirst; mGroupFirst=0; - if (const QueryGroup *tqparent = copy.firstChild()) + if (const QueryGroup *parent = copy.firstChild()) { - mGroupFirst = new QueryGroup(*tqparent); - deepCopy(tqparent->firstChild(), mGroupFirst); + mGroupFirst = new QueryGroup(*parent); + deepCopy(parent->firstChild(), mGroupFirst); } return *this; } @@ -438,17 +438,17 @@ void Query::dump() -void Query::loadGroup(TQDomElement element, QueryGroup *tqparent) +void Query::loadGroup(TQDomElement element, QueryGroup *parent) { TQDomNode node = element.firstChild(); QueryGroup *group = new QueryGroup; - if (tqparent) + if (parent) { - if (QueryGroup *last = tqparent->lastChild()) + if (QueryGroup *last = parent->lastChild()) last->setNextSibling(group); else - tqparent->setFirstChild(group); + parent->setFirstChild(group); } else { @@ -500,11 +500,11 @@ void Query::loadGroup(TQDomElement element, QueryGroup *tqparent) } } -void Query::saveGroup(TQDomElement &tqparent, QueryGroup *group) +void Query::saveGroup(TQDomElement &parent, QueryGroup *group) { - TQDomDocument doc = tqparent.ownerDocument(); + TQDomDocument doc = parent.ownerDocument(); TQDomElement element = doc.createElement("group"); - tqparent.appendChild(element); + parent.appendChild(element); TQDomElement childe; TQDomText childtext; |