From e24a1e86c4d4cdf272e3ec0cd33b31bf2d59244c Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Wed, 20 Jul 2011 01:01:23 +0200 Subject: Remove deprecated Glib symbols Fixed bugs: - https://launchpad.net/bugs/367606 (bzr r10480) --- src/helper/units.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helper/units.cpp') diff --git a/src/helper/units.cpp b/src/helper/units.cpp index 7914feeb3..4f5443e72 100644 --- a/src/helper/units.cpp +++ b/src/helper/units.cpp @@ -60,8 +60,8 @@ sp_unit_get_by_abbreviation(gchar const *abbreviation) g_return_val_if_fail(abbreviation != NULL, NULL); for (unsigned i = 0 ; i < sp_num_units ; i++) { - if (!g_strcasecmp(abbreviation, sp_units[i].abbr)) return &sp_units[i]; - if (!g_strcasecmp(abbreviation, sp_units[i].abbr_plural)) return &sp_units[i]; + if (!g_ascii_strcasecmp(abbreviation, sp_units[i].abbr)) return &sp_units[i]; + if (!g_ascii_strcasecmp(abbreviation, sp_units[i].abbr_plural)) return &sp_units[i]; } return NULL; -- cgit v1.2.3