Commit 2858b86c authored by Camilo Higuita's avatar Camilo Higuita

fix ambiguous call QString::contains(char)

parent 0e5a30a7
......@@ -286,23 +286,23 @@ namespace BAE
inline QString fixString (const QString &str)
{
//title.remove(QRegExp(QString::fromUtf8("[·-`~!@#$%^&*()_—+=|:;<>«»,.?/{}\'\"\\\[\\\]\\\\]")));
QString title=str;
title=title.remove(QChar::Null);
title=title.contains('\u0000')?title.replace('\u0000',""):title;
title=title.contains("(")&&title.contains(")")?fixTitle(title,"(",")"):title;
title=title.contains("[")&&title.contains("]")?fixTitle(title,"[","]"):title;
title=title.contains("{")&&title.contains("}")?fixTitle(title,"{","}"):title;
title=title.contains("ft")?removeSubstring(title, "ft"):title;
title=title.contains("ft.")?removeSubstring(title, "ft."):title;
title=title.contains("featuring")?removeSubstring(title, "featuring"):title;
title=title.contains("feat")?removeSubstring(title, "feat"):title;
title=title.contains("official video")?removeSubstring(title, "official video"):title;
title=title.contains("live")?removeSubstring(title, "live"):title;
title=title.contains("...")?title.replace("...",""):title;
title=title.contains("|")?title.replace("|",""):title;
title=title.contains("|")?removeSubstring(title, "|"):title;
title=title.contains('"')?title.replace('"',""):title;
title=title.contains(":")?title.replace(":",""):title;
QString title = str;
title = title.remove(QChar::Null);
title = title.contains(QChar('\u0000')) ? title.replace(QChar('\u0000'),"") : title;
title = title.contains("(") && title.contains(")") ? fixTitle(title, "(",")") : title;
title = title.contains("[") && title.contains("]") ? fixTitle(title, "[","]") : title;
title = title.contains("{") && title.contains("}") ? fixTitle(title, "{","}") : title;
title = title.contains("ft") ? removeSubstring(title, "ft") : title;
title = title.contains("ft.") ? removeSubstring(title, "ft.") : title;
title = title.contains("featuring") ? removeSubstring(title, "featuring"):title;
title = title.contains("feat") ? removeSubstring(title, "feat") : title;
title = title.contains("official video")?removeSubstring(title, "official video"):title;
title = title.contains("live") ? removeSubstring(title, "live") : title;
title = title.contains("...") ? title.replace("..." ,"") : title;
title = title.contains("|") ? title.replace("|", "") : title;
title = title.contains("|") ? removeSubstring(title, "|") : title;
title = title.contains('"') ? title.replace('"', "") : title;
title = title.contains(":") ? title.replace(":", "") : title;
// title=title.contains("&")? title.replace("&", "and"):title;
//qDebug()<<"fixed string:"<<title;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment