QmlDebug/QmlProfiler: Fix MSVC warnings

qmlprofilertraceclient.cpp:280: warning: C4334: '<<' : result of 32-bit
shift implicitly converted to 64 bits (was 64-bit shift intended?)

qmlprofilertool.cpp:539: warning: C4554: '<<' : check operator
precedence for possible error; use parentheses to clarify precedence

Change-Id: Ifaa048d42bccf203e6587a474c197c22b0f69fec
Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
This commit is contained in:
Orgad Shaneh
2014-09-24 07:59:13 +03:00
committed by Orgad Shaneh
parent 7aed3d3d76
commit 52574da031
3 changed files with 9 additions and 9 deletions

View File

@@ -277,7 +277,7 @@ void QmlProfilerTraceClient::messageReceived(const QByteArray &data)
break;
}
case RangeStart: {
if (!(d->features & (1 << featureFromRangeType(static_cast<RangeType>(subtype)))))
if (!(d->features & (1ULL << featureFromRangeType(static_cast<RangeType>(subtype)))))
break;
d->rangeStartTimes[subtype].push(time);
d->inProgressRanges |= (static_cast<qint64>(1) << subtype);
@@ -293,7 +293,7 @@ void QmlProfilerTraceClient::messageReceived(const QByteArray &data)
break;
}
case RangeData: {
if (!(d->features & (1 << featureFromRangeType(static_cast<RangeType>(subtype)))))
if (!(d->features & (1ULL << featureFromRangeType(static_cast<RangeType>(subtype)))))
break;
QString data;
stream >> data;
@@ -307,7 +307,7 @@ void QmlProfilerTraceClient::messageReceived(const QByteArray &data)
break;
}
case RangeLocation: {
if (!(d->features & (1 << featureFromRangeType(static_cast<RangeType>(subtype)))))
if (!(d->features & (1ULL << featureFromRangeType(static_cast<RangeType>(subtype)))))
break;
QString fileName;
int line;
@@ -322,7 +322,7 @@ void QmlProfilerTraceClient::messageReceived(const QByteArray &data)
break;
}
case RangeEnd: {
if (!(d->features & (1 << featureFromRangeType(static_cast<RangeType>(subtype)))))
if (!(d->features & (1ULL << featureFromRangeType(static_cast<RangeType>(subtype)))))
break;
if (d->rangeCount[subtype] == 0)
break;