diff options
author | kh1 <qt-info@nokia.com> | 2011-06-09 16:47:41 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2011-06-09 16:47:41 +0200 |
commit | 65de51a9c223590dad4085de4d4085b73187e41b (patch) | |
tree | a569c73753bd5f768a3c4247c6c25246ae60d5c8 /installerbuilder/libinstaller/getrepositorymetainfojob.cpp | |
parent | 6fa1d8870bc6ac527c13fc02ac2f292898b2bc2f (diff) |
Move constants into global file and use where possible.
Diffstat (limited to 'installerbuilder/libinstaller/getrepositorymetainfojob.cpp')
-rw-r--r-- | installerbuilder/libinstaller/getrepositorymetainfojob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installerbuilder/libinstaller/getrepositorymetainfojob.cpp b/installerbuilder/libinstaller/getrepositorymetainfojob.cpp index 6223537ea..51cbedfe9 100644 --- a/installerbuilder/libinstaller/getrepositorymetainfojob.cpp +++ b/installerbuilder/libinstaller/getrepositorymetainfojob.cpp @@ -215,9 +215,9 @@ void GetRepositoryMetaInfoJob::updatesXmlDownloadFinished() if (el.tagName() == QLatin1String("PackageUpdate")) { const QDomNodeList c2 = el.childNodes(); for (int j = 0; j < c2.count(); ++j) - if (c2.at(j).toElement().tagName() == QLatin1String("Name")) + if (c2.at(j).toElement().tagName() == scName) m_packageNames << c2.at(j).toElement().text(); - else if (c2.at(j).toElement().tagName() == QLatin1String("Version")) + else if (c2.at(j).toElement().tagName() == scVersion) m_packageVersions << c2.at(j).toElement().text(); else if (c2.at(j).toElement().tagName() == QLatin1String("SHA1")) m_packageHash << c2.at(j).toElement().text(); |