IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 4, 2006, 12:21:28 PM (19 years ago)
Author:
Paul Price
Message:

Propagating API change to psStringSubstitute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfile.c

    r10385 r10447  
    182182        char *name = psMetadataLookupStr (NULL, file->names, "OUTPUT");
    183183        if (name != NULL) {
    184             newName = psStringSubstitute (newName, name, "{OUTPUT}");
     184            psStringSubstitute(&newName, name, "{OUTPUT}");
    185185        }
    186186    }
     
    190190            char *name = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME");
    191191            if (name != NULL) {
    192                 newName = psStringSubstitute (newName, name, "{CHIP.NAME}");
     192                psStringSubstitute(&newName, name, "{CHIP.NAME}");
    193193            }
    194194        }
     
    201201            psStringAppend (&name, "%02d", view->chip);
    202202        }
    203         newName = psStringSubstitute (newName, name, "{CHIP.N}");
     203        psStringSubstitute(&newName, name, "{CHIP.N}");
    204204        psFree (name);
    205205    }
     
    209209            char *name = psMetadataLookupStr (NULL, cell->concepts, "CELL.NAME");
    210210            if (name != NULL) {
    211                 newName = psStringSubstitute (newName, name, "{CELL.NAME}");
     211                psStringSubstitute(&newName, name, "{CELL.NAME}");
    212212            }
    213213        }
     
    220220            psStringAppend (&name, "%02d", view->cell);
    221221        }
    222         newName = psStringSubstitute (newName, name, "{CELL.N}");
     222        psStringSubstitute(&newName, name, "{CELL.N}");
    223223    }
    224224    if (strstr (newName, "{EXTNAME}") != NULL) {
    225225        pmHDU *hdu = pmFPAviewThisHDU (view, file->fpa);
    226226        if (hdu->extname && *hdu->extname) {
    227             newName = psStringSubstitute (newName, hdu->extname, "{EXTNAME}");
     227            psStringSubstitute(&newName, hdu->extname, "{EXTNAME}");
    228228        }
    229229    }
     
    232232            char *name = psMetadataLookupStr (NULL, file->fpa->concepts, "FPA.FILTER");
    233233            if (name && *name) {
    234                 newName = psStringSubstitute (newName, name, "{FILTER}");
     234                psStringSubstitute(&newName, name, "{FILTER}");
    235235            }
    236236        }
     
    242242            char *name = psStringCopy ("isp");
    243243            if (name && *name) {
    244                 newName = psStringSubstitute (newName, name, "{CAMERA}");
     244                psStringSubstitute(&newName, name, "{CAMERA}");
    245245            }
    246246            psFree (name);
     
    254254                char *ID = psMetadataLookupStr (NULL, filterTable, filterName);
    255255                if (ID && *ID) {
    256                     newName = psStringSubstitute (newName, ID, "{FILTER.ID}");
     256                    psStringSubstitute(&newName, ID, "{FILTER.ID}");
    257257                }
    258258            }
Note: See TracChangeset for help on using the changeset viewer.