[clazy] [Bug 439337] clazy-qt6-deprecated-api-fixes creates invalid code
Nicolas Fella
bugzilla_noreply at kde.org
Wed Jun 30 16:36:13 BST 2021
https://bugs.kde.org/show_bug.cgi?id=439337
--- Comment #1 from Nicolas Fella <nicolas.fella at gmx.de> ---
Another similar instance of broken code:
diff --git a/core/kdeconnectpluginconfig.cpp b/core/kdeconnectpluginconfig.cpp
index fe48733d..e560c0f8 100644
--- a/core/kdeconnectpluginconfig.cpp
+++ b/core/kdeconnectpluginconfig.cpp
@@ -31,7 +31,7 @@ KdeConnectPluginConfig::KdeConnectPluginConfig()
KdeConnectPluginConfig::KdeConnectPluginConfig(const QString& deviceId, const
QString& pluginName)
: d(new KdeConnectPluginConfigPrivate())
{
- d->m_configDir = KdeConnectConfig::instance().pluginConfigDir(deviceId,
pluginName);
+ operator->.setPath(instancedeviceIdpluginName);
QDir().mkpath(d->m_configDir.path());
d->m_config = new
QSettings(d->m_configDir.absoluteFilePath(QStringLiteral("config")),
QSettings::IniFormat);
@@ -161,7 +161,7 @@ QString KdeConnectPluginConfig::pluginName()
void KdeConnectPluginConfig::loadConfig()
{
- d->m_configDir = KdeConnectConfig::instance().pluginConfigDir(m_deviceId,
m_pluginName);
+ operator->.setPath(instance);
QDir().mkpath(d->m_configDir.path());
d->m_config = new
QSettings(d->m_configDir.absoluteFilePath(QStringLiteral("config")),
QSettings::IniFormat);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list