Trivial code style: use wmem_new in a few places, and remove extraneous

whitespace.

svn path=/trunk/; revision=50401
This commit is contained in:
Evan Huus 2013-07-06 04:08:07 +00:00
parent c574f7d1ea
commit 777f060f01
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ wmem_slist_new(wmem_allocator_t *allocator)
{
wmem_slist_t *slist;
slist = (wmem_slist_t *) wmem_alloc(allocator, sizeof(wmem_slist_t));
slist = wmem_new(allocator, wmem_slist_t);
slist->count = 0;
slist->front = NULL;

View File

@ -66,7 +66,7 @@ wmem_strbuf_sized_new(wmem_allocator_t *allocator,
g_assert((max_len == 0) || (alloc_len <= max_len));
strbuf = (wmem_strbuf_t *)wmem_alloc(allocator, sizeof(wmem_strbuf_t));
strbuf = wmem_new(allocator, wmem_strbuf_t);
strbuf->allocator = allocator;
strbuf->len = 0;
@ -107,7 +107,7 @@ static void
wmem_strbuf_grow(wmem_strbuf_t *strbuf, const gsize to_add)
{
gsize new_alloc_len, new_len;
new_alloc_len = strbuf->alloc_len;
new_len = strbuf->len + to_add;