]> git.mxchange.org Git - flightgear.git/commitdiff
Fix an oversight/inefficiency spotted by Frederic Bouvier. We were passing a
authorcurt <curt>
Wed, 23 Jul 2003 17:50:45 +0000 (17:50 +0000)
committercurt <curt>
Wed, 23 Jul 2003 17:50:45 +0000 (17:50 +0000)
*copy* of a very large data set to a function.

src/Replay/replay.cxx

index 830e9ca252530cd8c232a2608cbd7ae51cabf214..659c7b3873190c88ef1d460d25fbcd4196d2c9e5 100644 (file)
@@ -372,7 +372,7 @@ static FGReplayData interpolate( double time, FGReplayData f1, FGReplayData f2 )
 /** 
  * interpolate a specific time from a specific list
  */
-static void interpolate( double time, replay_list_type list ) {
+static void interpolate( double time, const replay_list_type &list ) {
     // sanity checking
     if ( list.size() == 0 ) {
         // handle empty list