diff --git a/examples/saslclient/saslclient.cpp b/examples/saslclient/saslclient.cpp index 0d3ef7d2..1353c225 100644 --- a/examples/saslclient/saslclient.cpp +++ b/examples/saslclient/saslclient.cpp @@ -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; diff --git a/examples/saslserver/saslserver.cpp b/examples/saslserver/saslserver.cpp index e0514a23..ad2c6f97 100644 --- a/examples/saslserver/saslserver.cpp +++ b/examples/saslserver/saslserver.cpp @@ -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; diff --git a/examples/ssltest/ssltest.cpp b/examples/ssltest/ssltest.cpp index 2648c535..2b09431f 100644 --- a/examples/ssltest/ssltest.cpp +++ b/examples/ssltest/ssltest.cpp @@ -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 { diff --git a/plugins/qca-pkcs11/qca-pkcs11.cpp b/plugins/qca-pkcs11/qca-pkcs11.cpp index 1917462f..7d41bfc9 100644 --- a/plugins/qca-pkcs11/qca-pkcs11.cpp +++ b/plugins/qca-pkcs11/qca-pkcs11.cpp @@ -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 { diff --git a/plugins/qca-softstore/qca-softstore.cpp b/plugins/qca-softstore/qca-softstore.cpp index 50f17629..4a640615 100644 --- a/plugins/qca-softstore/qca-softstore.cpp +++ b/plugins/qca-softstore/qca-softstore.cpp @@ -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 { diff --git a/src/qca_default.cpp b/src/qca_default.cpp index 7488c7ed..8a484e3a 100644 --- a/src/qca_default.cpp +++ b/src/qca_default.cpp @@ -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); diff --git a/src/qca_plugin.cpp b/src/qca_plugin.cpp index 5ad08790..696c4f67 100644 --- a/src/qca_plugin.cpp +++ b/src/qca_plugin.cpp @@ -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; }