diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-01-27 10:36:50 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-01-27 13:44:02 +0000 |
commit | f4d51b56f771d6e42210f967f989b03391fd5bbd (patch) | |
tree | 7139437e3d3088e5bd560b331597867f8e49f777 /src/plugins | |
parent | b923b48eddaae21f700ce7ea5fc060f949058acf (diff) |
Fix warning about conversion from size_t to int
64 bit MSVC rightfully complains about a possible data loss when
converting from size_t to int.
Change-Id: I1f2dab2a92f978ac7e642d2d1fe7f4ebf559e912
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/scanner/cpp/cppscanner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scanner/cpp/cppscanner.cpp b/src/plugins/scanner/cpp/cppscanner.cpp index 53a5b62b3..9d9268d30 100644 --- a/src/plugins/scanner/cpp/cppscanner.cpp +++ b/src/plugins/scanner/cpp/cppscanner.cpp @@ -203,8 +203,8 @@ static void *openScanner(const unsigned short *filePath, const char *fileTags, i { QScopedPointer<Opaq> opaque(new Opaq); opaque->fileName = QString::fromUtf16(filePath); - const QList<QByteArray> &tagList = QByteArray::fromRawData(fileTags, - std::strlen(fileTags)).split(','); + const int fileTagsLength = static_cast<int>(std::strlen(fileTags)); + const QList<QByteArray> &tagList = QByteArray::fromRawData(fileTags, fileTagsLength).split(','); if (tagList.contains("hpp")) opaque->fileType = Opaq::FT_HPP; else if (tagList.contains("cpp")) |