| 72 | } |
| 73 | |
| 74 | void Version::parse() |
| 75 | { |
| 76 | m_sections.clear(); |
| 77 | |
| 78 | // FIXME: this is bad. versions can contain a lot more separators... |
| 79 | QStringList parts = m_string.split('.'); |
| 80 | |
| 81 | for (const auto &part : parts) |
| 82 | { |
| 83 | m_sections.append(Section(part)); |
| 84 | } |
| 85 | } |
no test coverage detected