MCPcopy Create free account
hub / github.com/QNapi/qnapi / operator<

Method operator<

libqnapi/src/subtitleinfo.cpp:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include <vector>
19
20bool 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
28SubtitleInfo SubtitleInfo::fromFailed(const QString& fileName) {
29 return SubtitleInfo("", "", "", QFileInfo(fileName).completeBaseName(), "",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected