summaryrefslogtreecommitdiffstats
path: root/src/tools/qunicodetables_p.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:32 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:32 +0900
commit99e56ba8db70324cc5c7ab416a3b48171613bd59 (patch)
tree52fe52817fe45a81a7e03254b614b67587d83e37 /src/tools/qunicodetables_p.h
parent630dcedfb398b350522742f0ab4d1255ac84da85 (diff)
downloadtqt3-99e56ba8db70324cc5c7ab416a3b48171613bd59.tar.gz
tqt3-99e56ba8db70324cc5c7ab416a3b48171613bd59.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/qunicodetables_p.h')
-rw-r--r--src/tools/qunicodetables_p.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/qunicodetables_p.h b/src/tools/qunicodetables_p.h
index 4adbc1f67..8d8936428 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 // TQT_NO_UNICODETABLES
@@ -112,8 +112,8 @@ inline TQChar lower( const TQChar &c )
#ifndef TQT_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 TQT_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 TQT_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 TQT_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 TQT_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
}