if(obj->m_StyleInfo->m_fg_valid)
{
- int red, green, blue;
+ unsigned char red, green, blue;
ReadString(tmp, istr);
tmp.ToLong(&l);
- red = (int) l;
+ red = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
- green = (int) l;
+ green = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
- blue = (int) l;
+ blue = (unsigned char) l;
obj->m_StyleInfo->m_fg = wxColour(red, green, blue);
}
if(obj->m_StyleInfo->m_bg_valid)
{
- int red, green, blue;
+ unsigned char red, green, blue;
ReadString(tmp, istr);
tmp.ToLong(&l);
- red = (int) l;
+ red = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
- green = (int) l;
+ green = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
- blue = (int) l;
+ blue = (unsigned char) l;
obj->m_StyleInfo->m_bg = wxColour(red, green, blue);
}
wxChar ch2=xitle[s+2]&0xff;
wxChar ch3=xitle[s+3]&0xff;
s+=4; // next character
- if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x36)) { title[d++]='ö'; }
- if ((ch1==0x27)&&(ch2==0x65)&&(ch3==0x34)) { title[d++]='ä'; }
- if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x63)) { title[d++]='ü'; }
- if ((ch1==0x27)&&(ch2==0x64)&&(ch3==0x36)) { title[d++]='Ö'; }
- if ((ch1==0x27)&&(ch2==0x63)&&(ch3==0x34)) { title[d++]='Ä'; }
- if ((ch1==0x27)&&(ch2==0x64)&&(ch3==0x63)) { title[d++]='Ü'; }
+ if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x36)) { title[d++]=_T('ö'); }
+ if ((ch1==0x27)&&(ch2==0x65)&&(ch3==0x34)) { title[d++]=_T('ä'); }
+ if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x63)) { title[d++]=_T('ü'); }
+ if ((ch1==0x27)&&(ch2==0x64)&&(ch3==0x36)) { title[d++]=_T('Ö'); }
+ if ((ch1==0x27)&&(ch2==0x63)&&(ch3==0x34)) { title[d++]=_T('Ä'); }
+ if ((ch1==0x27)&&(ch2==0x64)&&(ch3==0x63)) { title[d++]=_T('Ü'); }
} else {
title[d++]=ch;
s++;
while ((i < len) && (isdigit(ch) || ch == '.'))
{
- numberBuf[j] = ch;
+ numberBuf[j] = (wxChar)ch;
j ++;
i ++;
ch = value[i];
{ return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
#endif
-const float versionNo = TEX2RTF_VERSION_NUMBER;
+const float versionNo = (float)TEX2RTF_VERSION_NUMBER;
TexChunk *currentMember = NULL;
bool startedSections = false;
#ifdef NO_GUI
ShowOptions();
exit(1);
-#endif
+#else
return false;
+#endif
}
}
buf[i] = 0;
else
{
- buf[i] = ch;
+ buf[i] = (wxChar)ch;
i ++;
}
}
void BibEatWhiteSpace(wxSTD istream& str)
{
- char ch = str.peek();
+ char ch = (char)str.peek();
while (!str.eof() && (ch == ' ' || ch == '\t' || ch == 13 || ch == 10 || ch == EOF))
{
BibLine ++;
str.get(ch);
if ((ch == EOF) || str.eof()) return;
- ch = str.peek();
+ ch = (char)str.peek();
}
// Ignore end-of-line comments
if (ch == '%' || ch == ';' || ch == '#')
{
str.get(ch);
- ch = str.peek();
+ ch = (char)str.peek();
while (ch != 10 && ch != 13 && !str.eof())
{
str.get(ch);
- ch = str.peek();
+ ch = (char)str.peek();
}
BibEatWhiteSpace(str);
}
{
int i = 0;
buffer[i] = 0;
- char ch = istr.peek();
+ char ch = (char)istr.peek();
while (!istr.eof() && ch != ' ' && ch != '{' && ch != '(' && ch != 13 && ch != 10 && ch != '\t' &&
ch != ',' && ch != '=')
{
istr.get(ch);
buffer[i] = ch;
i ++;
- ch = istr.peek();
+ ch = (char)istr.peek();
}
buffer[i] = 0;
}
{
int i = 0;
buffer[i] = 0;
- char ch = istr.peek();
+ char ch = (char)istr.peek();
bool inQuotes = false;
if (ch == '"')
{
istr.get(ch);
- ch = istr.peek();
+ ch = (char)istr.peek();
inQuotes = true;
}
// If in quotes, read white space too. If not,
istr.get(ch);
buffer[i] = ch;
i ++;
- ch = istr.peek();
+ ch = (char)istr.peek();
}
if (ch == '"')
istr.get(ch);
int braceCount = 1;
int i = 0;
buffer[i] = 0;
- char ch = istr.peek();
+ char ch = (char)istr.peek();
bool stopping = false;
while (!istr.eof() && !stopping)
{