@@ -39,11 +39,11 @@ gboolean
39is_locale_12h(void)
39is_locale_12h(void)
42− static const char *formats_24h[] = {"%H", "%R", "%T", "%OH", "%k", NULL};
42+ static const char *formats_24h[] = {"%H", "%R", "%T", "%OH", "%k", nullptr};
43 const char* t_fmt = nl_langinfo(T_FMT);
43 const char* t_fmt = nl_langinfo(T_FMT);
45− for (i=0; formats_24h[i]!=NULL; i++)
45+ for (i=0; formats_24h[i]!=nullptr; i++)
46− if (strstr(t_fmt, formats_24h[i]) != NULL)
46+ if (strstr(t_fmt, formats_24h[i]) != nullptr)
47 return FALSE;
47 return FALSE;
49 return TRUE;
49 return TRUE;
@@ -129,7 +129,7 @@ getDateProximity(GDateTime* now, GDateTime* time)
129const char*
129const char*
130dgettext_datetime(const char *text)
130dgettext_datetime(const char *text)
132− return dgettext("indicator-datetime", text);
132+ return dgettext("indicator-datetime", text);
@@ -150,9 +150,9 @@ dgettext_datetime(const char *text)
150char* generate_full_format_string_at_time (GDateTime* now,
150char* generate_full_format_string_at_time (GDateTime* now,
151 GDateTime* then)
151 GDateTime* then)
153− GString* ret = g_string_new (NULL);
153+ GString* ret = g_string_new (nullptr);
155− if (then != NULL) {
155+ if (then != nullptr) {
156 const date_proximity_t prox = getDateProximity(now, then);
156 const date_proximity_t prox = getDateProximity(now, then);
158 if (is_locale_12h()) {
158 if (is_locale_12h()) {