diff --git a/Bucket/newbucket.cxx b/Bucket/newbucket.cxx index 96adf4b2c..2fbb32ec5 100644 --- a/Bucket/newbucket.cxx +++ b/Bucket/newbucket.cxx @@ -33,7 +33,7 @@ // Build the path name for this bucket -string FGBucket::gen_base_path() { +string FGBucket::gen_base_path() const { // long int index; int top_lon, top_lat, main_lon, main_lat; char hem, pole; @@ -146,6 +146,9 @@ void fgBucketDiff( const FGBucket& b1, const FGBucket& b2, int *dx, int *dy ) { // $Log$ +// Revision 1.4 1999/03/27 05:34:05 curt +// Elimitated some const warnings from the compiler. +// // Revision 1.3 1999/02/26 22:07:54 curt // Added initial support for native SGI compilers. // diff --git a/Bucket/newbucket.hxx b/Bucket/newbucket.hxx index 00069cec1..3ef337d4a 100644 --- a/Bucket/newbucket.hxx +++ b/Bucket/newbucket.hxx @@ -82,10 +82,10 @@ public: // Generate the unique scenery tile index for this bucket long int gen_index(); - string gen_index_str(); + string gen_index_str() const; // Build the path name for this bucket - string gen_base_path(); + string gen_base_path() const; // return the center lon of a tile double get_center_lon() const; @@ -256,9 +256,10 @@ inline long int FGBucket::gen_index() { return ((lon + 180) << 14) + ((lat + 90) << 6) + (y << 3) + x; } -inline string FGBucket::gen_index_str() { +inline string FGBucket::gen_index_str() const { char tmp[20]; - sprintf(tmp, "%ld", (((long)lon + 180) << 14) + ((lat + 90) << 6) + (y << 3) + x); + sprintf(tmp, "%ld", + (((long)lon + 180) << 14) + ((lat + 90) << 6) + (y << 3) + x); return (string)tmp; } @@ -329,6 +330,9 @@ operator== ( const FGBucket& b1, const FGBucket& b2 ) // $Log$ +// Revision 1.8 1999/03/27 05:34:06 curt +// Elimitated some const warnings from the compiler. +// // Revision 1.7 1999/03/25 19:01:51 curt // Jettisoned old bucketutils.[ch] for newbucket.[ch]xx //