linux: fix typo in code memo

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2023-02-08 13:44:15 +08:00
parent 6048349e52
commit 16c10d7569
1 changed files with 2 additions and 2 deletions

View File

@ -481,7 +481,7 @@ QString Utils::getWallpaperFilePath()
}
const gchararray rawPath = gconf_client_get_string(client, "/desktop/gnome/background/picture_filename", nullptr);
if (!rawPath || (*rawPath == '\0')) {
WARNING "Failed to retrieve the wallpaper file path.";
WARNING << "Failed to retrieve the wallpaper file path.";
return {};
}
return QUtf8String(rawPath);
@ -502,7 +502,7 @@ WallpaperAspectStyle Utils::getWallpaperAspectStyle()
}
const gchararray rawOptions = gconf_client_get_string(client, "/desktop/gnome/background/picture_options", nullptr);
if (!rawOptions || (*rawOptions == '\0')) {
WARNING "Failed to retrieve the wallpaper tile options.";
WARNING << "Failed to retrieve the wallpaper tile options.";
return defaultAspectStyle;
}
const QString options = QUtf8String(rawOptions);