mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +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:
@@ -230,12 +230,12 @@ bool RDTrimAudio::ParseXml(const QString &xml)
|
||||
//
|
||||
bool ret=false;
|
||||
|
||||
QStringList list=list.split("\n",xml);
|
||||
QStringList list=xml.split("\n");
|
||||
for(int i=0;i<list.size();i++) {
|
||||
if(list[i].contains("startTrimPoint")) {
|
||||
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) {
|
||||
conv_start_point=list2[1].toInt();
|
||||
ret=true;
|
||||
@@ -254,12 +254,12 @@ int RDTrimAudio::ParsePoint(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].toInt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user