diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:32 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-02-01 23:39:38 +0100 |
commit | 961eb3f6e276b4a3609328a3076ef790026e9c03 (patch) | |
tree | f27de88e666ac3e067e01b15ac60a103eb3c559f /src/table/qtable.cpp | |
parent | b08a6d71ba872e67b75a822fcd44670126975818 (diff) | |
download | qt3-961eb3f6e276b4a3609328a3076ef790026e9c03.tar.gz qt3-961eb3f6e276b4a3609328a3076ef790026e9c03.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/table/qtable.cpp')
-rw-r--r-- | src/table/qtable.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/table/qtable.cpp b/src/table/qtable.cpp index 9a9a66b..19fadea 100644 --- a/src/table/qtable.cpp +++ b/src/table/qtable.cpp @@ -5359,7 +5359,7 @@ void QTable::repaintSelections( QTableSelection *oldSelection, } if ( updateHorizontal && numCols() > 0 && left >= 0 && !isRowSelection( selectionMode() ) ) { - register int *s = &topHeader->states.data()[left]; + int *s = &topHeader->states.data()[left]; for ( i = left; i <= right; ++i ) { if ( !isColumnSelected( i ) ) *s = QTableHeader::Normal; @@ -5373,7 +5373,7 @@ void QTable::repaintSelections( QTableSelection *oldSelection, } if ( updateVertical && numRows() > 0 && top >= 0 ) { - register int *s = &leftHeader->states.data()[top]; + int *s = &leftHeader->states.data()[top]; for ( i = top; i <= bottom; ++i ) { if ( !isRowSelected( i ) ) *s = QTableHeader::Normal; @@ -6641,7 +6641,7 @@ void QTableHeader::setSectionStateToAll( SectionState state ) if ( isRowSelection( table->selectionMode() ) && orientation() == Horizontal ) return; - register int *d = (int *) states.data(); + int *d = (int *) states.data(); int n = count(); while (n >= 4) { @@ -7053,7 +7053,7 @@ void QTableHeader::updateSelections() int b = sectionAt( endPos ); int start = QMIN( a, b ); int end = QMAX( a, b ); - register int *s = states.data(); + int *s = states.data(); for ( int i = 0; i < count(); ++i ) { if ( i < start || i > end ) *s = oldStates.data()[ i ]; @@ -7079,8 +7079,8 @@ void QTableHeader::updateSelections() void QTableHeader::saveStates() { oldStates.resize( count() ); - register int *s = states.data(); - register int *s2 = oldStates.data(); + int *s = states.data(); + int *s2 = oldStates.data(); for ( int i = 0; i < count(); ++i ) { *s2 = *s; ++s2; |