Modified pointer expression

release/4.3a0
Sungtae An 2014-10-31 07:28:07 -04:00
parent 133fcf20e2
commit 6a20d35a60
1 changed files with 4 additions and 4 deletions

View File

@ -80,9 +80,9 @@ void handleLeafCase(const Eigen::Matrix<double, ROWS, COLS>& dTdA,
JacobianMap& jacobians, Key key) { JacobianMap& jacobians, Key key) {
for(JacobianMap::iterator it = jacobians.begin(); it != jacobians.end(); ++it) for(JacobianMap::iterator it = jacobians.begin(); it != jacobians.end(); ++it)
{ {
if((*it).first == key) if(it->first == key)
{ {
(*it).second.block<ROWS, COLS>(0, 0) += dTdA; // block makes HUGE difference it->second.block<ROWS, COLS>(0, 0) += dTdA; // block makes HUGE difference
break; break;
} }
} }
@ -94,9 +94,9 @@ void handleLeafCase(
JacobianMap& jacobians, Key key) { JacobianMap& jacobians, Key key) {
for(JacobianMap::iterator it = jacobians.begin(); it != jacobians.end(); ++it) for(JacobianMap::iterator it = jacobians.begin(); it != jacobians.end(); ++it)
{ {
if((*it).first == key) if(it->first == key)
{ {
(*it).second += dTdA; // block makes HUGE difference it->second += dTdA; // block makes HUGE difference
break; break;
} }
} }