changed add_index to set_index to match some updated objson
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 1 Aug 2005 15:33:22 +0000 (15:33 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 1 Aug 2005 15:33:22 +0000 (15:33 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@445 9efc2488-bf62-4759-914b-345cdb29e865

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