fix: typo in DGioSettingsPrivate

rename DGioSettingsPrivate::inlcudeKey to DGioSettingsPrivate::includeKey

Log: rename DGioSettingsPrivate::inlcudeKey to DGioSettingsPrivate::includeKey
This commit is contained in:
zty199 2024-06-17 21:09:18 +08:00 committed by deepin-bot[bot]
parent 5b0af3856b
commit 94dfa5322b

View File

@ -179,7 +179,7 @@ public:
return false; return false;
} }
bool inlcudeKey(const gchar* gkey) const { bool includeKey(const gchar* gkey) const {
gchar **allKeys = g_settings_list_keys(settings); gchar **allKeys = g_settings_list_keys(settings);
bool ret = strvHasString (allKeys, gkey); bool ret = strvHasString (allKeys, gkey);
g_strfreev (allKeys); g_strfreev (allKeys);
@ -190,7 +190,7 @@ public:
QVariant value(GSettings* gsettings, const QString& key) const { QVariant value(GSettings* gsettings, const QString& key) const {
gchar* gkey = DGioPrivate::converToGChar(key.toUtf8()); gchar* gkey = DGioPrivate::converToGChar(key.toUtf8());
if(!inlcudeKey(gkey)) { if(!includeKey(gkey)) {
g_free(gkey); g_free(gkey);
return QVariant(); return QVariant();
} }
@ -207,7 +207,7 @@ public:
{ {
gchar* gkey = DGioPrivate::converToGChar(key.toUtf8()); gchar* gkey = DGioPrivate::converToGChar(key.toUtf8());
if(!inlcudeKey(gkey)) { if(!includeKey(gkey)) {
g_free(gkey); g_free(gkey);
return false; return false;
} }