~ubuntu-branches/ubuntu/raring/kdepimlibs/raring-proposed

« back to all changes in this revision

Viewing changes to syndication/elementwrapper.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-07-08 00:32:40 UTC
  • mto: (0.5.5 experimental) (1.1.93)
  • mto: This revision was merged to the branch mainline in revision 100.
  • Revision ID: package-import@ubuntu.com-20110708003240-no12z37io7q5nxwt
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
        
96
96
        while (!current.isNull())
97
97
        {
98
 
            if (current.hasAttributeNS(xmlNamespace(), QString::fromUtf8("base")))
 
98
            if (current.hasAttributeNS(xmlNamespace(), QLatin1String("base")))
99
99
            {
100
 
                d->xmlBase = current.attributeNS(xmlNamespace(), QString::fromUtf8("base"));
 
100
                d->xmlBase = current.attributeNS(xmlNamespace(), QLatin1String("base"));
101
101
                return d->xmlBase;
102
102
            }
103
103
            
133
133
        
134
134
        while (!current.isNull())
135
135
        {
136
 
            if (current.hasAttributeNS(xmlNamespace(), QString::fromUtf8("lang")))
 
136
            if (current.hasAttributeNS(xmlNamespace(), QLatin1String("lang")))
137
137
            {
138
 
                d->xmlLang = current.attributeNS(xmlNamespace(), QString::fromUtf8("lang"));
 
138
                d->xmlLang = current.attributeNS(xmlNamespace(), QLatin1String("lang"));
139
139
                return d->xmlLang;
140
140
            }
141
141
            
185
185
    {
186
186
        QDomNode it = list.item(i);
187
187
        if (!base.isEmpty() && it.isElement() 
188
 
             && !it.toElement().hasAttributeNS(xmlNamespace(), QString::fromUtf8("base")))
 
188
             && !it.toElement().hasAttributeNS(xmlNamespace(), QLatin1String("base")))
189
189
        {
190
 
            it.toElement().setAttributeNS(xmlNamespace(), QString::fromUtf8("base"), base);
 
190
            it.toElement().setAttributeNS(xmlNamespace(), QLatin1String("base"), base);
191
191
        }
192
192
            
193
193
        ts << it;