some missing c_str()s added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -75,7 +75,7 @@ int HUGEFont3 = 28;
|
|||||||
// All of these tokens MUST be found on a line by themselves (no other
|
// All of these tokens MUST be found on a line by themselves (no other
|
||||||
// text) and must start at the first character of the line, or tex2rtf
|
// text) and must start at the first character of the line, or tex2rtf
|
||||||
// will fail to process them correctly (a limitation of tex2rtf, not TeX)
|
// will fail to process them correctly (a limitation of tex2rtf, not TeX)
|
||||||
wxString syntaxTokens[] =
|
static const wxString syntaxTokens[] =
|
||||||
{ "\\begin{verbatim}",
|
{ "\\begin{verbatim}",
|
||||||
"\\begin{toocomplex}",
|
"\\begin{toocomplex}",
|
||||||
"\\end{verbatim}",
|
"\\end{verbatim}",
|
||||||
@@ -809,12 +809,16 @@ bool read_a_line(char *buf)
|
|||||||
if (syntaxTokens[index] == "\\verb")
|
if (syntaxTokens[index] == "\\verb")
|
||||||
{
|
{
|
||||||
errBuf.Printf("'%s$....$' was detected at line %lu inside file %s. Please replace this form with \\tt{....}",
|
errBuf.Printf("'%s$....$' was detected at line %lu inside file %s. Please replace this form with \\tt{....}",
|
||||||
syntaxTokens[index], LineNumbers[CurrentInputIndex], (const char*) currentFileName.c_str());
|
syntaxTokens[index].c_str(),
|
||||||
|
LineNumbers[CurrentInputIndex],
|
||||||
|
currentFileName.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
errBuf.Printf("'%s' was detected at line %lu inside file %s that is not the only text on the line, starting at column one.",
|
errBuf.Printf("'%s' was detected at line %lu inside file %s that is not the only text on the line, starting at column one.",
|
||||||
syntaxTokens[index], LineNumbers[CurrentInputIndex], (const char*) currentFileName.c_str());
|
syntaxTokens[index].c_str(),
|
||||||
|
LineNumbers[CurrentInputIndex],
|
||||||
|
currentFileName.c_str());
|
||||||
}
|
}
|
||||||
OnError((char *)errBuf.c_str());
|
OnError((char *)errBuf.c_str());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user