From 7cbe4e7973df5fc04e87fda87bdc28c416cf7fbd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 9 Jun 2001 00:21:47 +0000 Subject: [PATCH] some missing c_str()s added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/tex2rtf/src/tex2any.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/utils/tex2rtf/src/tex2any.cpp b/utils/tex2rtf/src/tex2any.cpp index 4f63fba613..bc2e66c153 100644 --- a/utils/tex2rtf/src/tex2any.cpp +++ b/utils/tex2rtf/src/tex2any.cpp @@ -75,7 +75,7 @@ int HUGEFont3 = 28; // 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 // will fail to process them correctly (a limitation of tex2rtf, not TeX) -wxString syntaxTokens[] = +static const wxString syntaxTokens[] = { "\\begin{verbatim}", "\\begin{toocomplex}", "\\end{verbatim}", @@ -809,12 +809,16 @@ bool read_a_line(char *buf) if (syntaxTokens[index] == "\\verb") { 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 { 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()); } -- 2.45.2