forked from qt-creator/qt-creator
QmlProfiler: Apply some coding style
Change-Id: Id214986aaf6c7b0de50fdba2e45d8d0a309dabc3 Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
This commit is contained in:
@@ -66,8 +66,8 @@ protected:
|
|||||||
|
|
||||||
bool containsLocation(QmlJS::AST::SourceLocation start, QmlJS::AST::SourceLocation end)
|
bool containsLocation(QmlJS::AST::SourceLocation start, QmlJS::AST::SourceLocation end)
|
||||||
{
|
{
|
||||||
return (_line > start.startLine || (_line == start.startLine && _col >= start.startColumn)) &&
|
return (_line > start.startLine || (_line == start.startLine && _col >= start.startColumn))
|
||||||
(_line < end.startLine || (_line == end.startLine && _col <= end.startColumn));
|
&& (_line < end.startLine || (_line == end.startLine && _col <= end.startColumn));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ QmlProfilerDetailsRewriter::~QmlProfilerDetailsRewriter()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void QmlProfilerDetailsRewriter::requestDetailsForLocation(int requestId,
|
void QmlProfilerDetailsRewriter::requestDetailsForLocation(int requestId,
|
||||||
const QmlEventLocation &location)
|
const QmlEventLocation &location)
|
||||||
{
|
{
|
||||||
QString localFile;
|
QString localFile;
|
||||||
const QString locationFile = location.filename();
|
const QString locationFile = location.filename();
|
||||||
|
|||||||
Reference in New Issue
Block a user