summaryrefslogtreecommitdiffstats
path: root/src/activeqt/control/qaxserverbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/activeqt/control/qaxserverbase.cpp')
-rw-r--r--src/activeqt/control/qaxserverbase.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/activeqt/control/qaxserverbase.cpp b/src/activeqt/control/qaxserverbase.cpp
index efdefd3..13ab5ee 100644
--- a/src/activeqt/control/qaxserverbase.cpp
+++ b/src/activeqt/control/qaxserverbase.cpp
@@ -2399,8 +2399,7 @@ HRESULT WINAPI QAxServerBase::Invoke(DISPID dispidMember, REFIID riid,
if (index == -1) {
QRegularExpression regexp(QLatin1String("_([0-9])\\("));
QRegularExpressionMatch rmatch;
- QString::fromLatin1(name.constData()).lastIndexOf(regexp, -1, &rmatch);
- if (rmatch.hasMatch()) {
+ if (QString::fromLatin1(name.constData()).lastIndexOf(regexp, -1, &rmatch) != -1) {
name.chop(rmatch.capturedLength(0));
name += '(';
int overload = rmatch.capturedView(1).toInt() + 1;