Use chars not ints to initialize chars.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9632 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-02-15 11:51:55 +00:00
parent e476b0eace
commit a784b9501f

View File

@ -290,33 +290,33 @@ bool InsetLatexAccent::displayISO8859_9(PainterInfo & pi, int x, int y) const
switch (modtype) { switch (modtype) {
case CEDILLA: { case CEDILLA: {
if (ic == 'c') tmpic = 0xe7; if (ic == 'c') tmpic = '\xe7';
if (ic == 'C') tmpic = 0xc7; if (ic == 'C') tmpic = '\xc7';
if (ic == 's') tmpic = 0xfe; if (ic == 's') tmpic = '\xfe';
if (ic == 'S') tmpic = 0xde; if (ic == 'S') tmpic = '\xde';
break; break;
} }
case BREVE: { case BREVE: {
if (ic == 'g') tmpic = 0xf0; if (ic == 'g') tmpic = '\xf0';
if (ic == 'G') tmpic = 0xd0; if (ic == 'G') tmpic = '\xd0';
break; break;
} }
case UMLAUT: { case UMLAUT: {
if (ic == 'o') tmpic = 0xf6; if (ic == 'o') tmpic = '\xf6';
if (ic == 'O') tmpic = 0xd6; if (ic == 'O') tmpic = '\xd6';
if (ic == 'u') tmpic = 0xfc; if (ic == 'u') tmpic = '\xfc';
if (ic == 'U') tmpic = 0xdc; if (ic == 'U') tmpic = '\xdc';
break; break;
} }
case DOT: case DOT:
if (ic == 'I') tmpic = 0xdd; if (ic == 'I') tmpic = '\xdd';
break; break;
case DOT_LESS_I: case DOT_LESS_I:
tmpic = 0xfd; tmpic = '\xfd';
break; break;
default: default:
@ -407,15 +407,15 @@ void InsetLatexAccent::draw(PainterInfo & pi, int x, int baseline) const
// now the rest - draw within (x, y, x + wid, y + hg) // now the rest - draw within (x, y, x + wid, y + hg)
switch (modtype) { switch (modtype) {
case ACUTE: case ACUTE:
drawAccent(pi, x2, baseline, char(0xB4)); drawAccent(pi, x2, baseline, '\xB4');
break; break;
case GRAVE: case GRAVE:
drawAccent(pi, x2, baseline, char(0x60)); drawAccent(pi, x2, baseline, '\x60');
break; break;
case MACRON: case MACRON:
drawAccent(pi, x2, baseline, char(0xAF)); drawAccent(pi, x2, baseline, '\xAF');
break; break;
case TILDE: case TILDE:
@ -423,14 +423,14 @@ void InsetLatexAccent::draw(PainterInfo & pi, int x, int baseline) const
break; break;
case UNDERBAR: { case UNDERBAR: {
char const underbar(0x5F); char const underbar('\x5F');
pi.pain.text(x2 - font_metrics::center(underbar, font), pi.pain.text(x2 - font_metrics::center(underbar, font),
baseline, underbar, font); baseline, underbar, font);
break; break;
} }
case CEDILLA: { case CEDILLA: {
char const cedilla(0xB8); char const cedilla('\xB8');
pi.pain.text(x2 - font_metrics::center(cedilla, font), pi.pain.text(x2 - font_metrics::center(cedilla, font),
baseline, cedilla, font); baseline, cedilla, font);
break; break;
@ -447,7 +447,7 @@ void InsetLatexAccent::draw(PainterInfo & pi, int x, int baseline) const
break; break;
case CIRCLE: case CIRCLE:
drawAccent(pi, x2, baseline, char(0xB0)); drawAccent(pi, x2, baseline, '\xB0');
break; break;
case TIE: case TIE:
@ -498,7 +498,7 @@ void InsetLatexAccent::draw(PainterInfo & pi, int x, int baseline) const
break; break;
case CIRCUMFLEX: case CIRCUMFLEX:
drawAccent(pi, x2, baseline, 0x5E); drawAccent(pi, x2, baseline, '\x5E');
break; break;
case OGONEK: { case OGONEK: {