From 94dfa5322b13855ed384674d55cb7a85d8c4283b Mon Sep 17 00:00:00 2001 From: zty199 <46324746+zty199@users.noreply.github.com> Date: Mon, 17 Jun 2024 21:09:18 +0800 Subject: [PATCH] fix: typo in DGioSettingsPrivate rename DGioSettingsPrivate::inlcudeKey to DGioSettingsPrivate::includeKey Log: rename DGioSettingsPrivate::inlcudeKey to DGioSettingsPrivate::includeKey --- gio-qt/source/dgiosettings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gio-qt/source/dgiosettings.cpp b/gio-qt/source/dgiosettings.cpp index ea241ab..e1554ec 100644 --- a/gio-qt/source/dgiosettings.cpp +++ b/gio-qt/source/dgiosettings.cpp @@ -179,7 +179,7 @@ public: return false; } - bool inlcudeKey(const gchar* gkey) const { + bool includeKey(const gchar* gkey) const { gchar **allKeys = g_settings_list_keys(settings); bool ret = strvHasString (allKeys, gkey); g_strfreev (allKeys); @@ -190,7 +190,7 @@ public: QVariant value(GSettings* gsettings, const QString& key) const { gchar* gkey = DGioPrivate::converToGChar(key.toUtf8()); - if(!inlcudeKey(gkey)) { + if(!includeKey(gkey)) { g_free(gkey); return QVariant(); } @@ -207,7 +207,7 @@ public: { gchar* gkey = DGioPrivate::converToGChar(key.toUtf8()); - if(!inlcudeKey(gkey)) { + if(!includeKey(gkey)) { g_free(gkey); return false; }