aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-09-28 18:09:38 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-09-28 18:09:38 +0800
commit11ed217073533eaec516b02cd0a9dd4cd32d9b4d (patch)
tree3b6d9b0c0facdd6393d8e2552cdef2d0bc079ee1 /calendar/gui/e-cal-model.c
parenta527f288125ec1f05e95346c90f85fe89563cc79 (diff)
downloadgsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar
gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.gz
gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.bz2
gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.lz
gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.xz
gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.zst
gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.zip
Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to
2005-09-28 Tor Lillqvist <tml@novell.com> * gui/e-cal-model.c (set_classification): Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to literal ASCII strings, just casefolding ASCII is enough. Also better for portability. svn path=/trunk/; revision=30393
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r--calendar/gui/e-cal-model.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 0c6f3bb89a..795d47cf6a 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -543,11 +543,11 @@ set_classification (ECalModelComponent *comp_data, const char *value)
} else {
icalproperty_class ical_class;
- if (!strcasecmp (value, "PUBLIC"))
+ if (!g_ascii_strcasecmp (value, "PUBLIC"))
ical_class = ICAL_CLASS_PUBLIC;
- else if (!strcasecmp (value, "PRIVATE"))
+ else if (!g_ascii_strcasecmp (value, "PRIVATE"))
ical_class = ICAL_CLASS_PRIVATE;
- else if (!strcasecmp (value, "CONFIDENTIAL"))
+ else if (!g_ascii_strcasecmp (value, "CONFIDENTIAL"))
ical_class = ICAL_CLASS_CONFIDENTIAL;
else
ical_class = ICAL_CLASS_NONE;