StelGeodesicGrid.cpp   StelGeodesicGrid.cpp 
skipping to change at line 371 skipping to change at line 371
#else #else
int halfs_used[halfSpacesUsed]; int halfs_used[halfSpacesUsed];
#endif #endif
int halfs_used_count = 0; int halfs_used_count = 0;
for (int h=0;h<halfSpacesUsed;h++) for (int h=0;h<halfSpacesUsed;h++)
{ {
const int i = indexOfUsedSphericalCaps[h]; const int i = indexOfUsedSphericalCaps[h];
if (!corner0_inside[i] && !corner1_inside[i] && !corner2_ins ide[i]) if (!corner0_inside[i] && !corner1_inside[i] && !corner2_ins ide[i])
{ {
// totally outside this SphericalCap // totally outside this SphericalCap
return; goto end;
} }
else if (corner0_inside[i] && corner1_inside[i] && corner2_i nside[i]) else if (corner0_inside[i] && corner1_inside[i] && corner2_i nside[i])
{ {
// totally inside this SphericalCap // totally inside this SphericalCap
} }
else else
{ {
// on the border of this SphericalCap // on the border of this SphericalCap
halfs_used[halfs_used_count++] = i; halfs_used[halfs_used_count++] = i;
} }
skipping to change at line 440 skipping to change at line 440
convex,halfs_used,halfs_used_count, convex,halfs_used,halfs_used_count,
edge0_inside,edge1_inside,edge2_inside, edge0_inside,edge1_inside,edge2_inside,
inside_list,border_list,maxSearchLevel); inside_list,border_list,maxSearchLevel);
#if defined __STRICT_ANSI__ || !defined __GNUC__ #if defined __STRICT_ANSI__ || !defined __GNUC__
delete[] edge0_inside; delete[] edge0_inside;
delete[] edge1_inside; delete[] edge1_inside;
delete[] edge2_inside; delete[] edge2_inside;
#endif #endif
} }
} }
end:
#if defined __STRICT_ANSI__ || !defined __GNUC__ #if defined __STRICT_ANSI__ || !defined __GNUC__
delete[] halfs_used; delete[] halfs_used;
#endif #endif
return;
} }
/************************************************************************* /*************************************************************************
Return a search result matching the given spatial region Return a search result matching the given spatial region
*************************************************************************/ *************************************************************************/
const GeodesicSearchResult* StelGeodesicGrid::search(const QVector<Spherica lCap>& convex, int maxSearchLevel) const const GeodesicSearchResult* StelGeodesicGrid::search(const QVector<Spherica lCap>& convex, int maxSearchLevel) const
{ {
// Try to use the cached version // Try to use the cached version
if (maxSearchLevel==lastMaxSearchlevel && convex==lastSearchRegion) if (maxSearchLevel==lastMaxSearchlevel && convex==lastSearchRegion)
{ {
 End of changes. 3 change blocks. 
1 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/