mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 23:25:57 +01:00
2018-08-08 Fred Gleason <fredg@paravelsystems.com>
* Modified all instances of 'QStringList::split()' calls to use 'QString::split()'.
This commit is contained in:
@@ -198,12 +198,12 @@ uint64_t RDAudioStore::ParseInt(const QString &tag,const QString &xml)
|
||||
// FIXME: This is totally ad-hoc, but should work until we settle on
|
||||
// a proper XML parser.
|
||||
//
|
||||
QStringList list=list.split("\n",xml);
|
||||
QStringList list=xml.split("\n");
|
||||
for(int i=0;i<list.size();i++) {
|
||||
if(list[i].contains(tag)) {
|
||||
QStringList list2=list.split("<",list[i]);
|
||||
QStringList list2=list[i].split("<");
|
||||
if(list2.size()>=2) {
|
||||
list2=list2.split(">",list2[1]);
|
||||
list2=list2[1].split(">");
|
||||
if(list2.size()>=2) {
|
||||
return list2[1].toLongLong();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user