on xenial help sign in
Use g_strcmp0.
commitc286c675a8dad88b83c9e27a52e34894b54930d8 authorPawel Stolowski <pawel.stolowski@canonical.com> dateWed 9 Oct 2013, 18:34 (13 years ago) parent3ac13d3
1 file changed+2−2
plugins/Utils/albumartprovider.cpp+2−2
plugins/Utils/albumartprovider.cpp+2−2
@@ -45,7 +45,7 @@ AlbumArtProvider::AlbumArtProvider()
4545 auto schemas = g_settings_list_schemas();
4646 if (schemas) {
4747 for (int i = 0; schemas[i]; i++) {
48− if (strcmp(schemas[i], UNITY_LENS_SCHEMA.c_str()) == 0) {
48+ if (g_strcmp0(schemas[i], UNITY_LENS_SCHEMA.c_str()) == 0) {
4949 m_settings = g_settings_new("com.canonical.Unity.Lenses");
5050 break;
5151 }
@@ -160,7 +160,7 @@ std::string AlbumArtProvider::get_image(const std::string &artist, const std::st
160160 return cache.get_art_file(info.artist, info.album);
161161 }
162162
163− if (m_settings != nullptr && strcmp(g_settings_get_string(m_settings, "remote-content-search"), "all") !=0) {
163+ if (m_settings != nullptr && g_strcmp0(g_settings_get_string(m_settings, "remote-content-search"), "all") !=0) {
164164 qDebug() << "Remote content disabled";
165165 return DEFAULT_ALBUM_ART;
166166 }