summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/activeqt/container/qaxselect.cpp2
-rw-r--r--src/activeqt/control/qaxserverbase.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/activeqt/container/qaxselect.cpp b/src/activeqt/container/qaxselect.cpp
index e2642aa..2831ce7 100644
--- a/src/activeqt/container/qaxselect.cpp
+++ b/src/activeqt/container/qaxselect.cpp
@@ -148,7 +148,7 @@ static QString replaceEnvironmentVariables(QString in)
const int closingPercentPos = in.indexOf(QLatin1Char('%'), openInPercentPos + 1);
if (closingPercentPos < 0)
break;
- const QStringRef varName = in.midRef(openInPercentPos + 1, closingPercentPos - openInPercentPos - 1);
+ const QStringView varName = QStringView{in}.mid(openInPercentPos + 1, closingPercentPos - openInPercentPos - 1);
const QString contents = QString::fromLocal8Bit(qgetenv(varName.toLocal8Bit()));
in.replace(openInPercentPos, closingPercentPos - openInPercentPos + 1, contents);
}
diff --git a/src/activeqt/control/qaxserverbase.cpp b/src/activeqt/control/qaxserverbase.cpp
index 99a6bf0..a1f34c9 100644
--- a/src/activeqt/control/qaxserverbase.cpp
+++ b/src/activeqt/control/qaxserverbase.cpp
@@ -2405,7 +2405,7 @@ HRESULT WINAPI QAxServerBase::Invoke(DISPID dispidMember, REFIID riid,
if (rmatch.hasMatch()) {
name.chop(rmatch.capturedLength(0));
name += '(';
- int overload = rmatch.capturedRef(1).toInt() + 1;
+ int overload = rmatch.capturedView(1).toInt() + 1;
for (int s = 0; s < qt.object->metaObject()->methodCount(); ++s) {
QMetaMethod slot = qt.object->metaObject()->method(s);