diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2021-02-16 02:07:42 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2021-02-16 18:04:56 +0000 |
commit | 05b74ff728e8c6bc975e8c55160e1feb137895a1 (patch) | |
tree | f316f683355150812062147e2435cfdd1cef35b6 /src | |
parent | c5316621fb205440e54cee49b15dff18af32eeb9 (diff) | |
download | qbs-05b74ff728e8c6bc975e8c55160e1feb137895a1.tar.gz |
qt6: do not use QString::fromUtf16(ushort*) overload
... it was deprecated
Change-Id: Ibfff7424383edada54407e795fdf0b1757839dcb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/scanner/cpp/cppscanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scanner/cpp/cppscanner.cpp b/src/plugins/scanner/cpp/cppscanner.cpp index 6800ce608..6a500f013 100644 --- a/src/plugins/scanner/cpp/cppscanner.cpp +++ b/src/plugins/scanner/cpp/cppscanner.cpp @@ -204,7 +204,7 @@ static void scanCppFile(void *opaq, CPlusPlus::Lexer &yylex, bool scanForFileTag static void *openScanner(const unsigned short *filePath, const char *fileTags, int flags) { std::unique_ptr<Opaq> opaque(new Opaq); - opaque->fileName = QString::fromUtf16(filePath); + opaque->fileName = QString::fromUtf16(reinterpret_cast<const char16_t *>(filePath)); const int fileTagsLength = static_cast<int>(std::strlen(fileTags)); const QList<QByteArray> &tagList = QByteArray::fromRawData(fileTags, fileTagsLength).split(','); if (tagList.contains("hpp")) |