summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktestparser.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2018-07-11 15:44:51 +0200
committerChristian Stenger <christian.stenger@qt.io>2018-07-20 08:34:48 +0000
commit1d894c0f7a41512005c3ddaa3705e3fdc639c6db (patch)
tree073242e02544d5409457d1afc47a0aa7f348d57a /src/plugins/autotest/quick/quicktestparser.cpp
parentb8da47af9c8247e171a3baf29c125782fbebdad0 (diff)
downloadqt-creator-1d894c0f7a41512005c3ddaa3705e3fdc639c6db.tar.gz
AutoTest: Code cosmetics
* use nullptr * override * remove old style casts * fix most of the code model warnings Change-Id: Ia08e846f9326ae28ca7e7d66748e25a8b817b9b1 Reviewed-by: Xing Xiong Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick/quicktestparser.cpp')
-rw-r--r--src/plugins/autotest/quick/quicktestparser.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp
index 6e9b4ae82e..c4f7e7963a 100644
--- a/src/plugins/autotest/quick/quicktestparser.cpp
+++ b/src/plugins/autotest/quick/quicktestparser.cpp
@@ -120,7 +120,7 @@ static QString quickTestName(const CPlusPlus::Document::Ptr &doc,
if (QuickTestUtils::isQuickTestMacro(name)) {
CPlusPlus::Document::Block arg = macro.arguments().at(0);
return QLatin1String(CppParser::getFileContent(doc->fileName())
- .mid(arg.bytesBegin(), arg.bytesEnd() - arg.bytesBegin()));
+ .mid(int(arg.bytesBegin()), int(arg.bytesEnd() - arg.bytesBegin())));
}
}
@@ -311,10 +311,6 @@ QuickTestParser::QuickTestParser()
this, &QuickTestParser::doUpdateWatchPaths, Qt::QueuedConnection);
}
-QuickTestParser::~QuickTestParser()
-{
-}
-
void QuickTestParser::init(const QStringList &filesToParse, bool fullParse)
{
m_qmlSnapshot = QmlJSTools::Internal::ModelManager::instance()->snapshot();