Skip to content

Commit

Permalink
Re #4158. More fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Apr 2, 2012
1 parent d4381f5 commit bdebc4c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Code/Mantid/Framework/API/src/JointDomain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ namespace API
size_t JointDomain::size() const
{
size_t n = 0;
std::for_each(m_domains.begin(),m_domains.end(),[&n](const FunctionDomain_sptr d){
n += d->size();
});
for(auto d = m_domains.begin(); d != m_domains.end(); ++d)
{
n += (**d).size();
};
return n;
}
/// Return the number of parts in the domain
Expand Down

0 comments on commit bdebc4c

Please sign in to comment.