aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/TagId3.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-04 14:35:16 +0100
committerMax Kellermann <max@duempel.org>2013-12-04 14:35:16 +0100
commitc6cf8e992dd094cca734892055bf3c24b249d4d8 (patch)
treeadb87208b668e3496a70e1c92296e4c824626f83 /src/tag/TagId3.cxx
parent0c53e8c2d0a9cb40eba8bab4b91d6921037896f5 (diff)
downloadmpd-c6cf8e992dd094cca734892055bf3c24b249d4d8.tar.gz
mpd-c6cf8e992dd094cca734892055bf3c24b249d4d8.tar.xz
mpd-c6cf8e992dd094cca734892055bf3c24b249d4d8.zip
TagId3: gcc_unlikely instead of G_UNLIKELY
Diffstat (limited to '')
-rw-r--r--src/tag/TagId3.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tag/TagId3.cxx b/src/tag/TagId3.cxx
index 6e1f341a2..e04238d73 100644
--- a/src/tag/TagId3.cxx
+++ b/src/tag/TagId3.cxx
@@ -96,9 +96,8 @@ import_id3_string(bool is_id3v1, const id3_ucs4_t *ucs4)
if (is_id3v1 &&
(encoding = config_get_string(CONF_ID3V1_ENCODING, nullptr)) != nullptr) {
isostr = id3_ucs4_latin1duplicate(ucs4);
- if (G_UNLIKELY(!isostr)) {
+ if (gcc_unlikely(isostr == nullptr))
return nullptr;
- }
utf8 = (id3_utf8_t *)
g_convert_with_fallback((const char*)isostr, -1,
@@ -115,9 +114,8 @@ import_id3_string(bool is_id3v1, const id3_ucs4_t *ucs4)
g_free(isostr);
} else {
utf8 = id3_ucs4_utf8duplicate(ucs4);
- if (G_UNLIKELY(!utf8)) {
+ if (gcc_unlikely(utf8 == nullptr))
return nullptr;
- }
}
utf8_stripped = (id3_utf8_t *)g_strdup(g_strstrip((gchar *)utf8));