Remove unnecessary explicit calls to operator() and operator=

This commit is contained in:
Ray Speth 2014-12-05 23:33:15 +00:00
parent cdf764be4a
commit d830012340
2 changed files with 3 additions and 4 deletions

View file

@ -789,7 +789,7 @@ void NonlinearSolver::calcSolnToResNormVector()
for (size_t irow = 0; irow < neq_; irow++) {
m_wksp[irow] = 0.0;
}
doublereal* jptr = &(jacCopyPtr_->operator()(0,0));
doublereal* jptr = &((*jacCopyPtr_)(0,0));
for (size_t jcol = 0; jcol < neq_; jcol++) {
for (size_t irow = 0; irow < neq_; irow++) {
m_wksp[irow] += (*jptr) * m_ewt[jcol];

View file

@ -82,13 +82,12 @@ WaterSSTP& WaterSSTP::operator=(const WaterSSTP& b)
if (&b == this) {
return *this;
}
m_sub->operator=(*(b.m_sub));
*m_sub = *b.m_sub;
if (!m_waterProps) {
m_waterProps = new WaterProps(m_sub);
}
m_waterProps->operator=(*(b.m_waterProps));
*m_waterProps = *b.m_waterProps;
m_mw = b.m_mw;
m_ready = b.m_ready;