~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/ut/ut0list.cc

  • Committer: Monty Taylor
  • Date: 2010-12-26 00:22:34 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101226002234-2sb62sm2gs0iftuy
Fixing some of the innodb c++ casting issues.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
ib_list_create(void)
37
37
/*=================*/
38
38
{
39
 
        ib_list_t*      list = mem_alloc(sizeof(ib_list_t));
 
39
        ib_list_t*      list = static_cast<ib_list_t*>(mem_alloc(sizeof(ib_list_t)));
40
40
 
41
41
        list->first = NULL;
42
42
        list->last = NULL;
55
55
/*================*/
56
56
        mem_heap_t*     heap)   /*!< in: memory heap to use */
57
57
{
58
 
        ib_list_t*      list = mem_heap_alloc(heap, sizeof(ib_list_t));
 
58
        ib_list_t*      list = static_cast<ib_list_t *>(mem_heap_alloc(heap, sizeof(ib_list_t)));
59
59
 
60
60
        list->first = NULL;
61
61
        list->last = NULL;
122
122
        void*           data,           /*!< in: data */
123
123
        mem_heap_t*     heap)           /*!< in: memory heap to use */
124
124
{
125
 
        ib_list_node_t* node = mem_heap_alloc(heap, sizeof(ib_list_node_t));
 
125
        ib_list_node_t* node = static_cast<ib_list_node_t *>(mem_heap_alloc(heap, sizeof(ib_list_node_t)));
126
126
 
127
127
        node->data = data;
128
128