mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-535 fixed some compiler warnings
X-SVN-Rev: 2343
This commit is contained in:
parent
1130462c8d
commit
1f16762e57
3 changed files with 11 additions and 11 deletions
|
@ -48,13 +48,13 @@ StringList::getStaticClassID()
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
String2dList::String2dList()
|
||||
: fStrings(0), fRowCount(0), fColCount(0)
|
||||
: fRowCount(0), fColCount(0), fStrings(0)
|
||||
{}
|
||||
|
||||
String2dList::String2dList(UnicodeString **adopted,
|
||||
int32_t rowCount,
|
||||
int32_t colCount)
|
||||
: fStrings(adopted), fRowCount(rowCount), fColCount(colCount)
|
||||
: fRowCount(rowCount), fColCount(colCount), fStrings(adopted)
|
||||
{}
|
||||
|
||||
String2dList::~String2dList()
|
||||
|
|
|
@ -129,6 +129,15 @@ resolveImplicitLevels(UBiDi *pBiDi,
|
|||
static void
|
||||
adjustWSLevels(UBiDi *pBiDi);
|
||||
|
||||
/* to avoid some conditional statements, use tiny constant arrays */
|
||||
static Flags flagLR[2]={ DIRPROP_FLAG(L), DIRPROP_FLAG(R) };
|
||||
static Flags flagE[2]={ DIRPROP_FLAG(LRE), DIRPROP_FLAG(RLE) };
|
||||
static Flags flagO[2]={ DIRPROP_FLAG(LRO), DIRPROP_FLAG(RLO) };
|
||||
|
||||
#define DIRPROP_FLAG_LR(level) flagLR[(level)&1]
|
||||
#define DIRPROP_FLAG_E(level) flagE[(level)&1]
|
||||
#define DIRPROP_FLAG_O(level) flagO[(level)&1]
|
||||
|
||||
/* UBiDi object management -------------------------------------------------- */
|
||||
|
||||
U_CAPI UBiDi * U_EXPORT2
|
||||
|
|
|
@ -98,15 +98,6 @@ enum {
|
|||
*/
|
||||
#define MASK_EMBEDDING (DIRPROP_FLAG(NSM)|MASK_POSSIBLE_N)
|
||||
|
||||
/* to avoid some conditional statements, use tiny constant arrays */
|
||||
static Flags flagLR[2]={ DIRPROP_FLAG(L), DIRPROP_FLAG(R) };
|
||||
static Flags flagE[2]={ DIRPROP_FLAG(LRE), DIRPROP_FLAG(RLE) };
|
||||
static Flags flagO[2]={ DIRPROP_FLAG(LRO), DIRPROP_FLAG(RLO) };
|
||||
|
||||
#define DIRPROP_FLAG_LR(level) flagLR[(level)&1]
|
||||
#define DIRPROP_FLAG_E(level) flagE[(level)&1]
|
||||
#define DIRPROP_FLAG_O(level) flagO[(level)&1]
|
||||
|
||||
/* the dirProp's L and R are defined to 0 and 1 values in UCharDirection */
|
||||
#define GET_LR_FROM_LEVEL(level) ((DirProp)((level)&1))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue