aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/clangparser/clangparser.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-14 12:40:56 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-15 09:07:07 +0000
commit3ef82e86b9578a9e2de54b8b4032f9a610a57637 (patch)
tree93767d4018db7b24bb8508dcff139969af13ce3c /sources/shiboken2/ApiExtractor/clangparser/clangparser.cpp
parent93a9b331b6100679342e9b0f661bbb37de564d60 (diff)
shiboken2: Fix build with MSVC2019
std::string_view::iterator is not char *, apparently. Amends 1bfd77c92d78c3861d0c09068e6c353020a510f4. Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Change-Id: I5946bca2e71b82e1b30cdbfaff3bdfee875e60ca Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/clangparser/clangparser.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/clangparser/clangparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/clangparser/clangparser.cpp b/sources/shiboken2/ApiExtractor/clangparser/clangparser.cpp
index 599114b2f..d27c87828 100644
--- a/sources/shiboken2/ApiExtractor/clangparser/clangparser.cpp
+++ b/sources/shiboken2/ApiExtractor/clangparser/clangparser.cpp
@@ -153,7 +153,7 @@ QString BaseVisitor::getCodeSnippetString(const CXCursor &cursor)
const std::string_view result = getCodeSnippet(cursor);
return result.empty()
? QString()
- : QString::fromUtf8(result.cbegin(), result.size());
+ : QString::fromUtf8(result.data(), qsizetype(result.size()));
}
static CXChildVisitResult