mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-4559 Use const memory when possible.
X-SVN-Rev: 17810
This commit is contained in:
parent
7d70b23340
commit
843b460dd8
4 changed files with 5 additions and 5 deletions
|
@ -151,8 +151,8 @@ static const char copyright[] = U_COPYRIGHT_STRING;
|
|||
/* gcc 3.2 has an optimization bug */
|
||||
static const int64_t gNan64 = INT64_C(0x7FF8000000000000);
|
||||
static const int64_t gInf64 = INT64_C(0x7FF0000000000000);
|
||||
static const double * fgNan = (const double *)(&gNan64);
|
||||
static const double * fgInf = (const double *)(&gInf64);
|
||||
static const double * const fgNan = (const double * const)(&gNan64);
|
||||
static const double * const fgInf = (const double * const)(&gInf64);
|
||||
#else
|
||||
|
||||
#if IEEE_754
|
||||
|
|
|
@ -248,7 +248,7 @@ void RBBISetBuilder::build() {
|
|||
// subtree for each UnicodeSet that contains the string {eof}
|
||||
// Because EOF is not a character in the normal sense, it doesn't
|
||||
// affect the computation of ranges or TRIE.
|
||||
static UChar eofUString[] = {0x65, 0x6f, 0x66, 0};
|
||||
static const UChar eofUString[] = {0x65, 0x6f, 0x66, 0};
|
||||
UnicodeString eofString(eofUString);
|
||||
for (ni=0; ; ni++) { // Loop over each of the UnicodeSets encountered in the input rules
|
||||
usetNode = (RBBINode *)this->fRB->fUSetNodes->elementAt(ni);
|
||||
|
|
|
@ -209,7 +209,7 @@ struct ExtendedUText: public UText {
|
|||
void *extension;
|
||||
};
|
||||
|
||||
static UText emptyText = UTEXT_INITIALIZER;
|
||||
static const UText emptyText = UTEXT_INITIALIZER;
|
||||
|
||||
U_DRAFT UText * U_EXPORT2
|
||||
utext_setup(UText *ut, int32_t extraSpace, UErrorCode *status) {
|
||||
|
|
|
@ -300,7 +300,7 @@ void LayoutEngine::adjustGlyphPositions(const LEUnicode chars[], le_int32 offset
|
|||
}
|
||||
|
||||
if (fTypoFlags & 0x1) { /* kerning enabled */
|
||||
static le_uint32 kernTableTag = LE_KERN_TABLE_TAG;
|
||||
static const le_uint32 kernTableTag = LE_KERN_TABLE_TAG;
|
||||
|
||||
KernTable kt(fFontInstance, getFontTable(kernTableTag));
|
||||
kt.process(glyphStorage);
|
||||
|
|
Loading…
Add table
Reference in a new issue