Commit 0103355e authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud
Browse files

Set iterator to front each time it is asked from the container.

parent 9ae5baaa
......@@ -3,9 +3,9 @@
* Author: Thibaud Kloczko
* Created: Tue Feb 5 14:12:49 2013 (+0100)
* Version:
* Last-Updated: lun. févr. 11 13:53:13 2013 (+0100)
* By: Nicolas Niclausse
* Update #: 182
* Last-Updated: 2013 Mon Feb 11 15:36:33 (+0100)
* By: Thibaud Kloczko
* Update #: 189
*/
/* Change Log:
......@@ -95,6 +95,8 @@ template <typename T> dtkDistributedLocalIterator<T>& dtkDistributedContainer<T>
if (!m_loc_it)
m_loc_it = new dtkDistributedLocalIterator<T>(*this);
m_loc_it->toFront();
return *m_loc_it;
};
......@@ -103,5 +105,7 @@ template <typename T> dtkDistributedGlobalIterator<T>& dtkDistributedContainer<T
if (!m_glob_it)
m_glob_it = new dtkDistributedGlobalIterator<T>(*this);
m_glob_it->toFront();
return *m_glob_it;
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment