Mercurial > pidgin
comparison src/stringref.c @ 7768:4e5c48ea9478
[gaim-migrate @ 8413]
This is really const, and informing the compiler might improve inlining
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Fri, 05 Dec 2003 18:02:27 +0000 |
parents | 1f4005fcd872 |
children | 85abf91f2387 |
comparison
equal
deleted
inserted
replaced
7767:1f4005fcd872 | 7768:4e5c48ea9478 |
---|---|
69 g_return_if_fail(stringref != NULL); | 69 g_return_if_fail(stringref != NULL); |
70 if (--stringref->ref == 0) | 70 if (--stringref->ref == 0) |
71 g_free(stringref); | 71 g_free(stringref); |
72 } | 72 } |
73 | 73 |
74 const char *gaim_stringref_value(GaimStringref *stringref) | 74 const char *gaim_stringref_value(const GaimStringref *stringref) |
75 { | 75 { |
76 return (stringref == NULL ? NULL : stringref->value); | 76 return (stringref == NULL ? NULL : stringref->value); |
77 } | 77 } |