changed add_index to set_index to match some updated objson
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 1 Aug 2005 15:33:22 +0000 (15:33 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 1 Aug 2005 15:33:22 +0000 (15:33 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1583 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/utils/fieldmapper-c.pl

index a362f41..80a59e5 100755 (executable)
@@ -152,7 +152,7 @@ CODE
                $fstring_string .= <<CODE;
                tmp = new_object(NULL);
                tmp->is_null = 1;
-               obj->add_index(obj, $position, tmp);
+               obj->set_index(obj, $position, tmp);
 CODE
 
                $header_string .= <<CODE;
@@ -178,7 +178,7 @@ CODE
 
        void fm_${short_name}_set_$field(fm_$short_name* fm, object* obj) {
                if(!fm || !fm->array || !obj) return;
-               fm->array->add_index(fm->array, $position, obj);
+               fm->array->set_index(fm->array, $position, obj);
        }
 CODE