From e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:30 +0200 Subject: Imported Upstream version 1.0.1 --- ListItem.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'ListItem.c') diff --git a/ListItem.c b/ListItem.c index 68ca7c9..9beed0c 100644 --- a/ListItem.c +++ b/ListItem.c @@ -6,14 +6,17 @@ in the source distribution for its full text. */ #include "ListItem.h" + +#include "CRT.h" #include "String.h" -#include "Object.h" #include "RichString.h" -#include -#include "debug.h" +#include +#include +#include /*{ +#include "Object.h" typedef struct ListItem_ { Object super; @@ -49,7 +52,7 @@ ListItem* ListItem_new(const char* value, int key) { Object_setClass(this, LISTITEM_CLASS); ((Object*)this)->display = ListItem_display; ((Object*)this)->delete = ListItem_delete; - this->value = String_copy(value); + this->value = strdup(value); this->key = key; return this; } -- cgit v1.2.3