diff --git a/src/plugins/baremetal/debugserverprovidermanager.cpp b/src/plugins/baremetal/debugserverprovidermanager.cpp index 7716c200c07..e7afc2ef10d 100644 --- a/src/plugins/baremetal/debugserverprovidermanager.cpp +++ b/src/plugins/baremetal/debugserverprovidermanager.cpp @@ -99,7 +99,7 @@ void DebugServerProviderManager::restoreProviders() for (const Key &key : keys) { const int lastDot = key.view().lastIndexOf('.'); if (lastDot != -1) - map[key.view().mid(lastDot + 1).toByteArray()] = map[key]; + map[key.toByteArray().mid(lastDot + 1)] = map[key]; } bool restored = false; for (IDebugServerProviderFactory *f : std::as_const(m_factories)) { diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp index 36c25631002..5c313d1be53 100644 --- a/src/plugins/debugger/debuggeractions.cpp +++ b/src/plugins/debugger/debuggeractions.cpp @@ -292,7 +292,7 @@ QString DebuggerSettings::dump() if (!key.isEmpty()) { const int pos = key.view().indexOf('/'); if (pos >= 0) - key = key.view().mid(pos).toByteArray(); + key = key.toByteArray().mid(pos); const QString current = aspect->variantValue().toString(); const QString default_ = aspect->defaultVariantValue().toString(); QString setting = stringFromKey(key) + ": " + current + " (default: " + default_ + ')'; diff --git a/src/plugins/qtsupport/qtversionmanager.cpp b/src/plugins/qtsupport/qtversionmanager.cpp index 941bd763b69..3a4209cee83 100644 --- a/src/plugins/qtsupport/qtversionmanager.cpp +++ b/src/plugins/qtsupport/qtversionmanager.cpp @@ -219,7 +219,7 @@ bool QtVersionManagerImpl::restoreQtVersions() if (!key.view().startsWith(keyPrefix)) continue; bool ok; - int count = key.view().mid(keyPrefix.count()).toInt(&ok); + int count = key.toByteArray().mid(keyPrefix.count()).toInt(&ok); if (!ok || count < 0) continue; @@ -293,7 +293,7 @@ void QtVersionManagerImpl::updateFromInstaller(bool emitSignal) if (!key.view().startsWith(keyPrefix)) continue; bool ok; - int count = key.view().mid(keyPrefix.count()).toInt(&ok); + int count = key.toByteArray().mid(keyPrefix.count()).toInt(&ok); if (!ok || count < 0) continue;