Remove some more register keywords
They're deprecated since C++11 and removed in C++17. Change-Id: Ia2acd9312707bfee96838743645a04ae1780e5dd Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
0b1ec78c2d
commit
b92267cd4c
@ -106,7 +106,7 @@ float noise3(float vec[3])
|
||||
{
|
||||
int bx0, bx1, by0, by1, bz0, bz1, b00, b10, b01, b11;
|
||||
float rx0, rx1, ry0, ry1, rz0, rz1, *q, sy, sz, a, b, c, d, t, u, v;
|
||||
register int i, j;
|
||||
int i, j;
|
||||
|
||||
if (start) {
|
||||
start = 0;
|
||||
|
@ -860,7 +860,7 @@ bool QEventDispatcherWin32::unregisterTimers(QObject *object)
|
||||
Q_D(QEventDispatcherWin32);
|
||||
if (d->timerVec.isEmpty())
|
||||
return false;
|
||||
register WinTimerInfo *t;
|
||||
WinTimerInfo *t;
|
||||
for (int i=0; i<d->timerVec.size(); i++) {
|
||||
t = d->timerVec.at(i);
|
||||
if (t && t->obj == object) { // object found
|
||||
@ -957,7 +957,7 @@ int QEventDispatcherWin32::remainingTime(int timerId)
|
||||
|
||||
quint64 currentTime = qt_msectime();
|
||||
|
||||
register WinTimerInfo *t;
|
||||
WinTimerInfo *t;
|
||||
for (int i=0; i<d->timerVec.size(); i++) {
|
||||
t = d->timerVec.at(i);
|
||||
if (t && t->timerId == timerId) { // timer found
|
||||
|
@ -437,7 +437,7 @@ bool compareToArgument(const QDBusArgument &arg, const QVariant &v2)
|
||||
case QVariant::DateTime:
|
||||
return compare<QDateTime>(arg, v2);
|
||||
default:
|
||||
register int id = v2.userType();
|
||||
int id = v2.userType();
|
||||
if (id == qMetaTypeId<QDBusObjectPath>())
|
||||
return compare<QDBusObjectPath>(arg, v2);
|
||||
else if (id == qMetaTypeId<QDBusSignature>())
|
||||
|
Loading…
Reference in New Issue
Block a user