]> git.mxchange.org Git - flightgear.git/commitdiff
Make FGViewer::update() a pure virtual because FGViewer is a base class
authorcurt <curt>
Thu, 31 May 2001 04:25:43 +0000 (04:25 +0000)
committercurt <curt>
Thu, 31 May 2001 04:25:43 +0000 (04:25 +0000)
and can never be instantiated itself.

src/Main/viewer.hxx
src/Scenery/newcache.cxx

index 8c9a9311629e29e9a3d73e0315636b9ed43a95d4..4e74425f0896ef0864420f6b33408e806db6c15f 100644 (file)
@@ -116,7 +116,7 @@ protected:
     inline void set_clean() { dirty = false; }
 
     // Update the view volume, position, and orientation
-    virtual void update();
+    virtual void update() = 0;
 
 public:
 
index a93c9367755b65cbab29f631508581eba7eeb8ec..b9ffb038fda1d3fadd32f21324b3285e0b1f0809 100644 (file)
@@ -67,9 +67,9 @@ void FGNewCache::entry_free( long cache_index ) {
     FGTileEntry *tile = tile_cache[cache_index];
     tile->disconnect_ssg_nodes();
 
-#ifdef WISH_PLIB_WAS_THREADED
+#ifdef WISH_PLIB_WAS_THREADED // but it isn't
     tile->sched_removal();
-#else // plib isn't threaded so we always go here
+#else
     tile->free_tile();
     delete tile;
 #endif