Skip to content

Commit 015f817

Browse files
author
Darth Vader
committed
Merge commit '5d08e4a250aa0aa2805ef15967eaa77430bce8b1'
2 parents 6e5133f + 5d08e4a commit 015f817

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/phast/PhreeqcRM/src/IPhreeqcPhast/IPhreeqc/phreeqcpp/gases.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,7 @@ calc_gas_binary_parameter(std::string name1, std::string name2) const
704704
/* ---------------------------------------------------------------------- */
705705
{
706706
double f = 1.0;
707-
std::pair < std::string, std::string > p;
708-
p = { name1, name2 };
707+
std::pair<std::string, std::string> p(name1, name2);
709708
std::map<std::pair<std::string, std::string>, double>::const_iterator gas_pair_it;
710709
gas_pair_it = gas_binary_parameters.find(p);
711710
if (gas_pair_it != gas_binary_parameters.end())

src/phast/PhreeqcRM/src/IPhreeqcPhast/IPhreeqc/phreeqcpp/read.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -2626,11 +2626,8 @@ read_gas_binary_parameters(void)
26262626
}
26272627
if (!error)
26282628
{
2629-
std::pair<std::string, std::string> p;
2630-
p = { gas1, gas2 };
2631-
gas_binary_parameters[p] = d;
2632-
p = { gas2, gas1 };
2633-
gas_binary_parameters[p] = d;
2629+
gas_binary_parameters[std::make_pair(gas1, gas2)] = d;
2630+
gas_binary_parameters[std::make_pair(gas2, gas1)] = d;
26342631
}
26352632
else
26362633
{

0 commit comments

Comments
 (0)