diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/include.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/include.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/include.cpp b/sources/shiboken6/ApiExtractor/include.cpp index 15d2cadd9..d2d577817 100644 --- a/sources/shiboken6/ApiExtractor/include.cpp +++ b/sources/shiboken6/ApiExtractor/include.cpp @@ -24,6 +24,15 @@ QString Include::toString() const return u"import "_s + m_name + u';'; } +int Include::compare(const Include &rhs) const +{ + if (m_type < rhs.m_type) + return -1; + if (m_type > rhs.m_type) + return 1; + return m_name.compare(rhs.m_name); +} + size_t qHash(const Include& inc) { return qHash(inc.m_name); |
