aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpaster
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2021-01-21 13:26:26 +0100
committerEike Ziller <eike.ziller@qt.io>2021-01-21 14:05:46 +0000
commitf1f3881cdbdb541b7fdf82ad4de6dbcd73990444 (patch)
treeecbf0c2c474df975a64d660c2a68ea743850fd96 /src/plugins/cpaster
parentc8e8285ff09b1b8072adfb16ea3d63498d7a282e (diff)
Fix build with Qt6
Some type issues (int vs long long, int vs QFont::Weight), no "midRef" any more. Task-number: QTCREATORBUG-24098 Change-Id: Id39f70edc14832baaeebb2572bca5491deadaf1d Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r--src/plugins/cpaster/pastebindotcomprotocol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpaster/pastebindotcomprotocol.cpp b/src/plugins/cpaster/pastebindotcomprotocol.cpp
index e2f4bdf0c3..c503bfe333 100644
--- a/src/plugins/cpaster/pastebindotcomprotocol.cpp
+++ b/src/plugins/cpaster/pastebindotcomprotocol.cpp
@@ -227,7 +227,7 @@ static QString replaceEntities(const QString &original)
const QRegularExpressionMatch match = it.next();
const QString value = match.captured(1);
if (value.startsWith('x'))
- result.replace(match.captured(0), QChar(value.midRef(1).toInt(nullptr, 16)));
+ result.replace(match.captured(0), QChar(value.mid(1).toInt(nullptr, 16)));
else
result.replace(match.captured(0), QChar(value.toInt(nullptr, 10)));
}