diff options
author | Michele Calgaro <[email protected]> | 2020-01-30 20:17:32 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-01-30 23:58:41 +0900 |
commit | ce9614515fa863c4a66870f5288e417eceaf9106 (patch) | |
tree | 46822e581173d96db101d0c8521fa1730cd09602 /src/tools/qunicodetables_p.h | |
parent | cd2dc5026e152d6cf57895fe4f41cabdf2bb3eca (diff) | |
download | tqt3-ce9614515fa863c4a66870f5288e417eceaf9106.tar.gz tqt3-ce9614515fa863c4a66870f5288e417eceaf9106.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 99e56ba8db70324cc5c7ab416a3b48171613bd59)
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 7cc4cc6ec..35c548bf8 100644 --- a/src/tools/qunicodetables_p.h +++ b/src/tools/qunicodetables_p.h @@ -101,7 +101,7 @@ inline TQChar::Category category( const TQChar &c ) if ( c.unicode() > 0xff ) return TQChar::Letter_Uppercase; //######## return (TQChar::Category)TQUnicodeTables::unicode_info[c.unicode()]; #else - register int uc = ((int)TQUnicodeTables::unicode_info[c.row()]) << 8; + int uc = ((int)TQUnicodeTables::unicode_info[c.row()]) << 8; uc += c.cell(); return (TQChar::Category)TQUnicodeTables::unicode_info[uc]; #endif // QT_NO_UNICODETABLES @@ -112,8 +112,8 @@ inline TQChar lower( const TQChar &c ) #ifndef QT_NO_UNICODETABLES int row = c.row(); int cell = c.cell(); - register int ci = TQUnicodeTables::case_info[row]; - register int uc = ((int)TQUnicodeTables::unicode_info[c.row()]) << 8; + int ci = TQUnicodeTables::case_info[row]; + int uc = ((int)TQUnicodeTables::unicode_info[c.row()]) << 8; uc += c.cell(); if (TQUnicodeTables::unicode_info[uc] != TQChar::Letter_Uppercase || !ci) return c; @@ -131,8 +131,8 @@ inline TQChar upper( const TQChar &c ) #ifndef QT_NO_UNICODETABLES int row = c.row(); int cell = c.cell(); - register int ci = TQUnicodeTables::case_info[row]; - register int uc = ((int)TQUnicodeTables::unicode_info[c.row()]) << 8; + int ci = TQUnicodeTables::case_info[row]; + int uc = ((int)TQUnicodeTables::unicode_info[c.row()]) << 8; uc += c.cell(); if (TQUnicodeTables::unicode_info[uc] != TQChar::Letter_Lowercase || !ci) return c; @@ -148,7 +148,7 @@ inline TQChar upper( const TQChar &c ) inline TQChar::Direction direction( const TQChar &c ) { #ifndef QT_NO_UNICODETABLES - register int pos = TQUnicodeTables::direction_info[c.row()]; + int pos = TQUnicodeTables::direction_info[c.row()]; return (TQChar::Direction) (TQUnicodeTables::direction_info[(pos<<8)+c.cell()] & 0x1f); #else Q_UNUSED(c); @@ -159,7 +159,7 @@ inline TQChar::Direction direction( const TQChar &c ) inline bool mirrored( const TQChar &c ) { #ifndef QT_NO_UNICODETABLES - register int pos = TQUnicodeTables::direction_info[c.row()]; + int pos = TQUnicodeTables::direction_info[c.row()]; return TQUnicodeTables::direction_info[(pos<<8)+c.cell()] > 128; #else Q_UNUSED(c); @@ -187,7 +187,7 @@ inline TQChar mirroredChar( const TQChar &ch ) inline TQChar::Joining joining( const TQChar &ch ) { #ifndef QT_NO_UNICODETABLES - register int pos = TQUnicodeTables::direction_info[ch.row()]; + int pos = TQUnicodeTables::direction_info[ch.row()]; return (TQChar::Joining) ((TQUnicodeTables::direction_info[(pos<<8)+ch.cell()] >> 5) &0x3); #else Q_UNUSED(ch); @@ -225,7 +225,7 @@ inline int lineBreakClass( const TQChar &ch ) return ch.row() ? TQUnicodeTables::LineBreak_AL : TQUnicodeTables::latin1_line_break_info[ch.cell()]; #else - register int pos = ((int)TQUnicodeTables::line_break_info[ch.row()] << 8) + ch.cell(); + int pos = ((int)TQUnicodeTables::line_break_info[ch.row()] << 8) + ch.cell(); return TQUnicodeTables::line_break_info[pos]; #endif } |