mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refactor: Use dynamic lookup with pure virtual methods
This makes it clearer what an IInterpolant and Interpolator must implemented. But it should be checked if using virtual here is okay performance-wise.
This commit is contained in:
@@ -100,7 +100,7 @@ namespace BlackMisc::Simulation
|
||||
}
|
||||
}
|
||||
|
||||
CInterpolatorLinear::CInterpolant CInterpolatorLinear::getInterpolant(SituationLog &log)
|
||||
const IInterpolant &CInterpolatorLinear::getInterpolant(SituationLog &log)
|
||||
{
|
||||
// set default situations
|
||||
CAircraftSituation startSituation = m_interpolant.getStartSituation();
|
||||
|
||||
Reference in New Issue
Block a user