Skip to content
Snippets Groups Projects
Commit a17d5dd9 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[CL] Pass database as const&. Avoids string copy.

parent 0aedefe7
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ PhreeqcKernel::PhreeqcKernel(
std::size_t const num_chemical_systems,
std::vector<std::pair<int, std::string>> const&
process_id_to_component_name_map,
std::string const database,
std::string const& database,
AqueousSolution aqueous_solution,
std::unique_ptr<EquilibriumReactants>&& equilibrium_reactants,
std::unique_ptr<Kinetics>&& kinetic_reactants,
......
......@@ -35,7 +35,7 @@ public:
PhreeqcKernel(std::size_t const num_chemical_systems,
std::vector<std::pair<int, std::string>> const&
process_id_to_component_name_map,
std::string const database,
std::string const& database,
AqueousSolution aqueous_solution,
std::unique_ptr<EquilibriumReactants>&& equilibrium_reactants,
std::unique_ptr<Kinetics>&& kinetic_reactants,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment