PPCAnalyst: Use std::swap instead of making a temporary variable