summaryrefslogtreecommitdiffstats
path: root/akregator/src/librss/enclosure.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /akregator/src/librss/enclosure.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/librss/enclosure.cpp')
-rw-r--r--akregator/src/librss/enclosure.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/akregator/src/librss/enclosure.cpp b/akregator/src/librss/enclosure.cpp
index 602a25588..864c19fce 100644
--- a/akregator/src/librss/enclosure.cpp
+++ b/akregator/src/librss/enclosure.cpp
@@ -57,30 +57,30 @@ Enclosure Enclosure::fromXML(const TQDomElement& e)
TQString url, type;
int length = -1;
- if (e.hasAttribute(TQString::fromLatin1("url")))
- url = e.attribute(TQString::fromLatin1("url"));
+ if (e.hasAttribute(TQString::tqfromLatin1("url")))
+ url = e.attribute(TQString::tqfromLatin1("url"));
- if (e.hasAttribute(TQString::fromLatin1("length")))
+ if (e.hasAttribute(TQString::tqfromLatin1("length")))
{
bool ok;
- int c = e.attribute(TQString::fromLatin1("length")).toInt(&ok);
+ int c = e.attribute(TQString::tqfromLatin1("length")).toInt(&ok);
length = ok ? c : -1;
}
- if (e.hasAttribute(TQString::fromLatin1("type")))
- type = e.attribute(TQString::fromLatin1("type"));
+ if (e.hasAttribute(TQString::tqfromLatin1("type")))
+ type = e.attribute(TQString::tqfromLatin1("type"));
return Enclosure(url, length, type);
}
TQDomElement Enclosure::toXML(TQDomDocument document) const
{
- TQDomElement e = document.createElement(TQString::fromLatin1("enclosure"));
+ TQDomElement e = document.createElement(TQString::tqfromLatin1("enclosure"));
if (!d->url.isNull())
- e.setAttribute(TQString::fromLatin1("url"), d->url);
+ e.setAttribute(TQString::tqfromLatin1("url"), d->url);
if (d->length != -1)
- e.setAttribute(TQString::fromLatin1("length"), TQString::number(d->length));
+ e.setAttribute(TQString::tqfromLatin1("length"), TQString::number(d->length));
if (!d->type.isNull())
- e.setAttribute(TQString::fromLatin1("type"), d->type);
+ e.setAttribute(TQString::tqfromLatin1("type"), d->type);
return e;
}