diff options
Diffstat (limited to 'ApiExtractor/typesystem.cpp')
-rw-r--r-- | ApiExtractor/typesystem.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ApiExtractor/typesystem.cpp b/ApiExtractor/typesystem.cpp index 0575b32..a815d7d 100644 --- a/ApiExtractor/typesystem.cpp +++ b/ApiExtractor/typesystem.cpp @@ -145,7 +145,7 @@ bool Handler::parse(QXmlStreamReader &reader) } break; case QXmlStreamReader::Characters: - if (!characters(reader.text().toString())) { + if (!characters(reader.text())) { m_error = msgReaderError(reader, m_error); return false; } @@ -322,7 +322,8 @@ bool Handler::endElement(const QStringRef &localName) return true; } -bool Handler::characters(const QString &ch) +template <class String> // QString/QStringRef +bool Handler::characters(const String &ch) { if (m_currentDroppedEntry || m_ignoreDepth) return true; |