Only thing we changed was adding "Iterator::" to the member's qualification
| 49 | |
| 50 | // Only thing we changed was adding "Iterator::" to the member's qualification |
| 51 | SharedBox Truckload::Iterator::getFirstBox() |
| 52 | { |
| 53 | // Return m_head's box (or nullptr if the list is empty) |
| 54 | m_current = m_head; |
| 55 | return m_current? m_current->m_box : nullptr; |
| 56 | } |
| 57 | |
| 58 | // Only thing we changed was adding "Iterator::" to the member's qualification |
| 59 | SharedBox Truckload::Iterator::getNextBox() |