Changeset 14787
- Timestamp:
- 06/29/08 17:46:15 (5 months ago)
- Files:
-
- trunk/gdal/ogr/ogrsf_frmts/xplane/ogr_xplane_awy_reader.cpp (modified) (1 diff)
- trunk/gdal/port/cpl_hash_set.cpp (modified) (1 diff)
- trunk/gdal/port/cpl_hash_set.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/ogr/ogrsf_frmts/xplane/ogr_xplane_awy_reader.cpp
r14021 r14787 355 355 poFeature->SetField( 0, pszIntersectionName ); 356 356 357 if (CPLHashSet Find(poSet, poFeature) == FALSE)357 if (CPLHashSetLookup(poSet, poFeature) == NULL) 358 358 { 359 359 CPLHashSetInsert(poSet, poFeature->Clone()); trunk/gdal/port/cpl_hash_set.cpp
r14693 r14787 290 290 291 291 /************************************************************************/ 292 /* CPLHashSetFind() */ 293 /************************************************************************/ 294 295 /** 296 * Returns if an element is inserted in a hash set 292 /* CPLHashSetLookup() */ 293 /************************************************************************/ 294 295 /** 296 * Returns the element found in the hash set corresponding to the element to look up 297 * The element must not be modified. 297 298 * 298 299 * @param set the hash set 299 300 * @param elt the element to look up in the hash set 300 301 * 301 * @return TRUE if the element is in the hash set302 */ 303 304 int CPLHashSetFind(CPLHashSet* set, const void* elt)302 * @return the element found in the hash set or NULL 303 */ 304 305 void* CPLHashSetLookup(CPLHashSet* set, const void* elt) 305 306 { 306 307 CPLAssert(set != NULL); 307 308 void** pElt = CPLHashSetFindPtr(set, elt); 308 return pElt != NULL; 309 if (pElt) 310 return *pElt; 311 else 312 return NULL; 309 313 } 310 314 trunk/gdal/port/cpl_hash_set.h
r14021 r14787 75 75 int CPL_DLL CPLHashSetInsert(CPLHashSet* set, void* elt); 76 76 77 int CPL_DLL CPLHashSetFind(CPLHashSet* set, const void* elt);77 void CPL_DLL * CPLHashSetLookup(CPLHashSet* set, const void* elt); 78 78 79 79 int CPL_DLL CPLHashSetRemove(CPLHashSet* set, const void* elt);
