| 18 | #include <vector> |
| 19 | |
| 20 | bool SubtitleInfo::operator<(const SubtitleInfo& other) const { |
| 21 | std::vector<QString> v1 = {QString::number(other.resolution), name}; |
| 22 | std::vector<QString> v2 = {QString::number(resolution), other.name}; |
| 23 | |
| 24 | return std::lexicographical_compare(v1.begin(), v1.end(), v2.begin(), |
| 25 | v2.end()); |
| 26 | } |
| 27 | |
| 28 | SubtitleInfo SubtitleInfo::fromFailed(const QString& fileName) { |
| 29 | return SubtitleInfo("", "", "", QFileInfo(fileName).completeBaseName(), "", |
nothing calls this directly
no outgoing calls
no test coverage detected