diff options
Diffstat (limited to 'src/plugins/scanner/cpp')
-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")) |