2018-08-08 Fred Gleason <fredg@paravelsystems.com>

* Modified all instances of 'QStringList::split()' calls to use
	'QString::split()'.
This commit is contained in:
Fred Gleason
2018-08-08 18:11:23 -04:00
parent e3bb963c3f
commit 8d11616b4b
44 changed files with 145 additions and 146 deletions

View File

@@ -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();
}