1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[Build] Fixed building with Qt5

This commit is contained in:
nowrep 2014-04-06 13:50:09 +02:00
parent db664184d0
commit 463fa96e04
2 changed files with 4 additions and 4 deletions

View File

@ -545,7 +545,7 @@ bool AdBlockRule::filterIsOnlyDomain(const QString &filter) const
return false;
for (int i = 0; i < filter.size(); ++i) {
switch (filter.at(i).toAscii()) {
switch (filter.at(i).toLatin1()) {
case '/':
case ':':
case '?':
@ -564,7 +564,7 @@ bool AdBlockRule::filterIsOnlyDomain(const QString &filter) const
bool AdBlockRule::filterIsOnlyEndsMatch(const QString &filter) const
{
for (int i = 0; i < filter.size(); ++i) {
switch (filter.at(i).toAscii()) {
switch (filter.at(i).toLatin1()) {
case '^':
case '*':
return false;
@ -592,7 +592,7 @@ QString AdBlockRule::createRegExpFromFilter(const QString &filter) const
for (int i = 0; i < filter.size(); ++i) {
const QChar c = filter.at(i);
switch (c.toAscii()) {
switch (c.toLatin1()) {
case '^':
parsed.append(QL1S("(?:[^\\w\\d\\-.%]|$)"));
break;

View File

@ -47,7 +47,7 @@ QVariant GM_JSObject::getValue(const QString &nspace, const QString &name, const
return dValue;
}
switch (savedValue.at(0).unicode()) {
switch (savedValue.at(0).toLatin1()) {
case 'b':
return QVariant(actualValue == QLatin1String("true"));