Use const ref for mtop and inputrec in EnergyOutput initialization
[alexxy/gromacs.git] / src / gromacs / mdlib / tests / energyoutput.cpp
index 49417a41f5d695c8c65cdd113deefff529cbe30f..b82e610fe5b65b267554cdda622f70c7783a3ea1 100644 (file)
@@ -621,8 +621,8 @@ TEST_P(EnergyOutputTest, CheckOutput)
     MdModulesNotifier             mdModulesNotifier;
     std::unique_ptr<EnergyOutput> energyOutput =
             std::make_unique<EnergyOutput>(energyFile_,
-                                           &mtop_,
-                                           &inputrec_,
+                                           mtop_,
+                                           inputrec_,
                                            nullptr,
                                            nullptr,
                                            parameters.isRerun,