mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-26 11:34:32 +00:00
QString::mid -> midRef
This commit is contained in:
parent
3d6e4e7c2e
commit
d3f8ea684e
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user