Only thing we changed was adding "Iterator::" to the member's qualification
| 70 | |
| 71 | // Only thing we changed was adding "Iterator::" to the member's qualification |
| 72 | SharedBox Truckload::Iterator::getNextBox() |
| 73 | { |
| 74 | if (!m_current) // If there's no current... |
| 75 | return getFirstBox(); // ...return the 1st Box |
| 76 | |
| 77 | m_current = m_current->m_next; // Move to the next package |
| 78 | |
| 79 | return m_current? m_current->m_box : nullptr; // Return its box (or nullptr...). |
| 80 | } |
| 81 | |
| 82 | void Truckload::addBox(SharedBox box) |
| 83 | { |
no outgoing calls
no test coverage detected