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:42:53 +0100 |
commit | 92036ede2d4488a67bfff21821db0507430fcf43 (patch) | |
tree | 3c55f8101dda18e4e0337db8fa4926f6478098b7 /src/tools/qunicodetables_p.h | |
parent | 0f0b7ff115ae07da28e438ce92022e48c26e9289 (diff) | |
download | qt3-92036ede2d4488a67bfff21821db0507430fcf43.tar.gz qt3-92036ede2d4488a67bfff21821db0507430fcf43.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 961eb3f6e276b4a3609328a3076ef790026e9c03)
Diffstat (limited to 'src/tools/qunicodetables_p.h')
-rw-r--r-- | src/tools/qunicodetables_p.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/qunicodetables_p.h b/src/tools/qunicodetables_p.h index ae8136f..8a587d7 100644 --- a/src/tools/qunicodetables_p.h +++ b/src/tools/qunicodetables_p.h @@ -101,7 +101,7 @@ inline QChar::Category category( const QChar &c ) if ( c.unicode() > 0xff ) return QChar::Letter_Uppercase; //######## return (QChar::Category)QUnicodeTables::unicode_info[c.unicode()]; #else - register int uc = ((int)QUnicodeTables::unicode_info[c.row()]) << 8; + int uc = ((int)QUnicodeTables::unicode_info[c.row()]) << 8; uc += c.cell(); return (QChar::Category)QUnicodeTables::unicode_info[uc]; #endif // QT_NO_UNICODETABLES @@ -112,8 +112,8 @@ inline QChar lower( const QChar &c ) #ifndef QT_NO_UNICODETABLES int row = c.row(); int cell = c.cell(); - register int ci = QUnicodeTables::case_info[row]; - register int uc = ((int)QUnicodeTables::unicode_info[c.row()]) << 8; + int ci = QUnicodeTables::case_info[row]; + int uc = ((int)QUnicodeTables::unicode_info[c.row()]) << 8; uc += c.cell(); if (QUnicodeTables::unicode_info[uc] != QChar::Letter_Uppercase || !ci) return c; @@ -131,8 +131,8 @@ inline QChar upper( const QChar &c ) #ifndef QT_NO_UNICODETABLES int row = c.row(); int cell = c.cell(); - register int ci = QUnicodeTables::case_info[row]; - register int uc = ((int)QUnicodeTables::unicode_info[c.row()]) << 8; + int ci = QUnicodeTables::case_info[row]; + int uc = ((int)QUnicodeTables::unicode_info[c.row()]) << 8; uc += c.cell(); if (QUnicodeTables::unicode_info[uc] != QChar::Letter_Lowercase || !ci) return c; @@ -148,7 +148,7 @@ inline QChar upper( const QChar &c ) inline QChar::Direction direction( const QChar &c ) { #ifndef QT_NO_UNICODETABLES - register int pos = QUnicodeTables::direction_info[c.row()]; + int pos = QUnicodeTables::direction_info[c.row()]; return (QChar::Direction) (QUnicodeTables::direction_info[(pos<<8)+c.cell()] & 0x1f); #else Q_UNUSED(c); @@ -159,7 +159,7 @@ inline QChar::Direction direction( const QChar &c ) inline bool mirrored( const QChar &c ) { #ifndef QT_NO_UNICODETABLES - register int pos = QUnicodeTables::direction_info[c.row()]; + int pos = QUnicodeTables::direction_info[c.row()]; return QUnicodeTables::direction_info[(pos<<8)+c.cell()] > 128; #else Q_UNUSED(c); @@ -187,7 +187,7 @@ inline QChar mirroredChar( const QChar &ch ) inline QChar::Joining joining( const QChar &ch ) { #ifndef QT_NO_UNICODETABLES - register int pos = QUnicodeTables::direction_info[ch.row()]; + int pos = QUnicodeTables::direction_info[ch.row()]; return (QChar::Joining) ((QUnicodeTables::direction_info[(pos<<8)+ch.cell()] >> 5) &0x3); #else Q_UNUSED(ch); @@ -225,7 +225,7 @@ inline int lineBreakClass( const QChar &ch ) return ch.row() ? QUnicodeTables::LineBreak_AL : QUnicodeTables::latin1_line_break_info[ch.cell()]; #else - register int pos = ((int)QUnicodeTables::line_break_info[ch.row()] << 8) + ch.cell(); + int pos = ((int)QUnicodeTables::line_break_info[ch.row()] << 8) + ch.cell(); return QUnicodeTables::line_break_info[pos]; #endif } |