aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/typedatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/ApiExtractor/typedatabase.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/typedatabase.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/sources/shiboken2/ApiExtractor/typedatabase.cpp b/sources/shiboken2/ApiExtractor/typedatabase.cpp
index 9fcf474c6..6b56d362e 100644
--- a/sources/shiboken2/ApiExtractor/typedatabase.cpp
+++ b/sources/shiboken2/ApiExtractor/typedatabase.cpp
@@ -568,8 +568,7 @@ bool TypeDatabase::addSuppressedWarning(const QString &warning, QString *errorMe
return true;
}
-template <class String> // QString, QStringRef
-bool TypeDatabase::isSuppressedWarningHelper(const String &s) const
+bool TypeDatabase::isSuppressedWarning(QStringView s) const
{
if (!m_suppressWarnings)
return false;
@@ -579,16 +578,6 @@ bool TypeDatabase::isSuppressedWarningHelper(const String &s) const
});
}
-bool TypeDatabase::isSuppressedWarning(const QString &s) const
-{
- return isSuppressedWarningHelper(s);
-}
-
-bool TypeDatabase::isSuppressedWarning(const QStringRef &s) const
-{
- return isSuppressedWarningHelper(s);
-}
-
QString TypeDatabase::modifiedTypesystemFilepath(const QString& tsFile, const QString &currentPath) const
{
const QFileInfo tsFi(tsFile);
@@ -904,6 +893,8 @@ void TypeEntry::formatDebug(QDebug &d) const
FORMAT_BOOL("stream", m_stream)
FORMAT_LIST_SIZE("codeSnips", m_codeSnips)
FORMAT_NONEMPTY_STRING("conversionRule", m_conversionRule)
+ if (m_viewOn)
+ d << ", views=" << m_viewOn->name();
if (!m_version.isNull() && m_version > QVersionNumber(0, 0))
d << ", version=" << m_version;
if (m_revision)