From: curt Date: Wed, 23 Jul 2003 17:50:45 +0000 (+0000) Subject: Fix an oversight/inefficiency spotted by Frederic Bouvier. We were passing a X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6bbc51c058ebcf5e7fea318187c94f986f8941c7;p=flightgear.git Fix an oversight/inefficiency spotted by Frederic Bouvier. We were passing a *copy* of a very large data set to a function. --- diff --git a/src/Replay/replay.cxx b/src/Replay/replay.cxx index 830e9ca25..659c7b387 100644 --- a/src/Replay/replay.cxx +++ b/src/Replay/replay.cxx @@ -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