Update test_list.cpp
This commit is contained in:
@@ -76,7 +76,6 @@ BOOST_AUTO_TEST_CASE(test_int_list){
|
||||
|
||||
struct FixtureStrings{
|
||||
FixtureStrings() {
|
||||
name = NULL;
|
||||
list = NULL;
|
||||
|
||||
int numNames = 5;
|
||||
@@ -84,6 +83,7 @@ struct FixtureStrings{
|
||||
|
||||
list = create_list(sizeof(char *), free_string);
|
||||
|
||||
char *name;
|
||||
for (int i = 0; i < numNames; i++) {
|
||||
name = _strdup(names[i]);
|
||||
append_list(list, &name);
|
||||
@@ -92,7 +92,6 @@ struct FixtureStrings{
|
||||
~FixtureStrings() {
|
||||
delete_list(list);
|
||||
}
|
||||
char *name;
|
||||
list_t *list;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user