QString::mid -> midRef

This commit is contained in:
Albert Astals Cid 2020-01-23 17:40:59 +01:00
parent 3d6e4e7c2e
commit d3f8ea684e
7 changed files with 7 additions and 7 deletions

View File

@ -547,7 +547,7 @@ int main(int argc, char **argv)
if(at != -1)
{
host = hostinput.mid(0, at);
port = hostinput.mid(at + 1).toInt();
port = hostinput.midRef(at + 1).toInt();
}
else
host = hostinput;

View File

@ -492,7 +492,7 @@ int main(int argc, char **argv)
if(at != -1)
{
host = hostinput.mid(0, at);
port = hostinput.mid(at + 1).toInt();
port = hostinput.midRef(at + 1).toInt();
}
else
host = hostinput;

View File

@ -139,7 +139,7 @@ public:
if(n != -1)
{
host = _host.mid(0, n);
port = _host.mid(n+1).toInt();
port = _host.midRef(n+1).toInt();
}
else
{

View File

@ -2518,7 +2518,7 @@ pkcs11KeyStoreListContext::_unescapeString (
QChar c = from[i];
if (c == '\\') {
to += QChar ((ushort)from.mid (i+2, 4).toInt (0, 16));
to += QChar ((ushort)from.midRef (i+2, 4).toInt (0, 16));
i+=5;
}
else {

View File

@ -1304,7 +1304,7 @@ private:
QChar c = from[i];
if (c == '\\') {
to += QChar ((ushort)from.mid (i+2, 4).toInt (0, 16));
to += QChar ((ushort)from.midRef (i+2, 4).toInt (0, 16));
i+=5;
}
else {

View File

@ -1291,7 +1291,7 @@ public:
int x = s.indexOf(':');
bool ok = false;
if(x != -1)
s.mid(x + 1).toInt(&ok);
s.midRef(x + 1).toInt(&ok);
if(!ok)
{
plugin_priorities.removeAt(n);

View File

@ -800,7 +800,7 @@ int ProviderManager::get_default_priority(const QString &name) const
// qca_default already sanity checks the strings
int n = s.indexOf(':');
QString sname = s.mid(0, n);
int spriority = s.mid(n + 1).toInt();
int spriority = s.midRef(n + 1).toInt();
if(sname == name)
return spriority;
}