Skip to content

Commit

Permalink
Remove some more register keywords
Browse files Browse the repository at this point in the history
They're deprecated since C++11 and removed in C++17.

Change-Id: Ia2acd9312707bfee96838743645a04ae1780e5dd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
  • Loading branch information
marc-kdab committed May 6, 2017
1 parent 0b1ec78 commit b92267c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/widgets/graphicsview/boxes/3rdparty/fbm.c
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/kernel/qeventdispatcher_win.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/dbus/qdbusmarshall/common.h
Expand Up @@ -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>())
Expand Down

0 comments on commit b92267c

Please sign in to comment.