diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2019-09-11 08:22:53 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2019-09-11 15:20:34 +0000 |
commit | 2aca0c1b28fc0160fb1ed54c90bc5ffc96bd6c1b (patch) | |
tree | dd555773a722fa076fc3d092d730d62a6c058159 /src/plugins/qtsupport/qtoutputformatter.cpp | |
parent | 75a0340a5338a2f31af96b49ef1a85a475494ac0 (diff) |
Fix MSVC warnings
* Missing `this` captures
* Implicit size_t -> int conversion
* Unused argument
* Suppress warnings in clang headers
Change-Id: I7083ce6ab22ee22ecc1258539e77c790acc78df1
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/qtoutputformatter.cpp')
-rw-r--r-- | src/plugins/qtsupport/qtoutputformatter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/qtoutputformatter.cpp b/src/plugins/qtsupport/qtoutputformatter.cpp index dc90c8fda3..4c9090c2d8 100644 --- a/src/plugins/qtsupport/qtoutputformatter.cpp +++ b/src/plugins/qtsupport/qtoutputformatter.cpp @@ -243,7 +243,7 @@ void QtOutputFormatter::handleLink(const QString &href) const QString filePath = qmlLineMatch.captured(1); QUrl fileUrl = QUrl(filePath); if (!fileUrl.isValid() && filePath.startsWith(scheme)) - fileUrl = QUrl::fromLocalFile(filePath.mid(strlen(scheme))); + fileUrl = QUrl::fromLocalFile(filePath.mid(int(strlen(scheme)))); const int line = qmlLineMatch.captured(2).toInt(); openEditor(getFileToOpen(fileUrl), line); return; |