mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-27 03:54:31 +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)
|
if(at != -1)
|
||||||
{
|
{
|
||||||
host = hostinput.mid(0, at);
|
host = hostinput.mid(0, at);
|
||||||
port = hostinput.mid(at + 1).toInt();
|
port = hostinput.midRef(at + 1).toInt();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
host = hostinput;
|
host = hostinput;
|
||||||
|
@ -492,7 +492,7 @@ int main(int argc, char **argv)
|
|||||||
if(at != -1)
|
if(at != -1)
|
||||||
{
|
{
|
||||||
host = hostinput.mid(0, at);
|
host = hostinput.mid(0, at);
|
||||||
port = hostinput.mid(at + 1).toInt();
|
port = hostinput.midRef(at + 1).toInt();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
host = hostinput;
|
host = hostinput;
|
||||||
|
@ -139,7 +139,7 @@ public:
|
|||||||
if(n != -1)
|
if(n != -1)
|
||||||
{
|
{
|
||||||
host = _host.mid(0, n);
|
host = _host.mid(0, n);
|
||||||
port = _host.mid(n+1).toInt();
|
port = _host.midRef(n+1).toInt();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2518,7 +2518,7 @@ pkcs11KeyStoreListContext::_unescapeString (
|
|||||||
QChar c = from[i];
|
QChar c = from[i];
|
||||||
|
|
||||||
if (c == '\\') {
|
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;
|
i+=5;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1304,7 +1304,7 @@ private:
|
|||||||
QChar c = from[i];
|
QChar c = from[i];
|
||||||
|
|
||||||
if (c == '\\') {
|
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;
|
i+=5;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1291,7 +1291,7 @@ public:
|
|||||||
int x = s.indexOf(':');
|
int x = s.indexOf(':');
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
if(x != -1)
|
if(x != -1)
|
||||||
s.mid(x + 1).toInt(&ok);
|
s.midRef(x + 1).toInt(&ok);
|
||||||
if(!ok)
|
if(!ok)
|
||||||
{
|
{
|
||||||
plugin_priorities.removeAt(n);
|
plugin_priorities.removeAt(n);
|
||||||
|
@ -800,7 +800,7 @@ int ProviderManager::get_default_priority(const QString &name) const
|
|||||||
// qca_default already sanity checks the strings
|
// qca_default already sanity checks the strings
|
||||||
int n = s.indexOf(':');
|
int n = s.indexOf(':');
|
||||||
QString sname = s.mid(0, n);
|
QString sname = s.mid(0, n);
|
||||||
int spriority = s.mid(n + 1).toInt();
|
int spriority = s.midRef(n + 1).toInt();
|
||||||
if(sname == name)
|
if(sname == name)
|
||||||
return spriority;
|
return spriority;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user