aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/parser/codemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/ApiExtractor/parser/codemodel.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/parser/codemodel.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/sources/shiboken2/ApiExtractor/parser/codemodel.cpp b/sources/shiboken2/ApiExtractor/parser/codemodel.cpp
index 9995fc71a..76ce333ed 100644
--- a/sources/shiboken2/ApiExtractor/parser/codemodel.cpp
+++ b/sources/shiboken2/ApiExtractor/parser/codemodel.cpp
@@ -224,7 +224,7 @@ public:
m_parseStack.append(t);
}
- void operator()(int level, const QStringRef &name)
+ void operator()(int level, QStringView name)
{
if (level > m_parseStack.size()) {
Q_ASSERT(!top()->m_instantiations.isEmpty());
@@ -240,12 +240,12 @@ public:
private:
TypeInfo *top() const { return m_parseStack.back(); }
- static QStringList qualifiedName(const QStringRef &name)
+ static QStringList qualifiedName(QStringView name)
{
QStringList result;
- const QVector<QStringRef> nameParts = name.split(QLatin1String("::"));
+ const auto nameParts = name.split(u"::");
result.reserve(nameParts.size());
- for (const QStringRef &p : nameParts)
+ for (const auto &p : nameParts)
result.append(p.toString());
return result;
}
@@ -494,11 +494,7 @@ void TypeInfo::formatDebug(QDebug &d) const
QDebug operator<<(QDebug d, const TypeInfo &t)
{
QDebugStateSaver s(d);
-#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
const int verbosity = d.verbosity();
-#else
- const int verbosity = 0;
-#endif
d.noquote();
d.nospace();
d << "TypeInfo(";