mirror of
https://github.com/linuxdeepin/gio-qt.git
synced 2024-12-26 06:56:25 +01:00
fix: typo in DGioSettingsPrivate
rename DGioSettingsPrivate::inlcudeKey to DGioSettingsPrivate::includeKey Log: rename DGioSettingsPrivate::inlcudeKey to DGioSettingsPrivate::includeKey
This commit is contained in:
parent
5b0af3856b
commit
94dfa5322b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue