added missing wxSTD for cout & cerr

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-11-04 17:41:53 +00:00
parent 750c3a6d07
commit 219f4a6d0d

View File

@@ -192,7 +192,7 @@ bool MyApp::OnInit()
if (!InputFile || !OutputFile) if (!InputFile || !OutputFile)
{ {
cout << "Tex2RTF: input or output file is missing.\n"; wxSTD cout << "Tex2RTF: input or output file is missing.\n";
ShowOptions(); ShowOptions();
exit(1); exit(1);
} }
@@ -1080,16 +1080,16 @@ void OnError(const char *msg)
errorCount++; errorCount++;
#ifdef NO_GUI #ifdef NO_GUI
cerr << "Error: " << msg << "\n"; wxSTD cerr << "Error: " << msg << "\n";
cerr.flush(); wxSTD cerr.flush();
#else #else
if (isInteractive && frame) if (isInteractive && frame)
(*frame->textWindow) << "Error: " << msg << "\n"; (*frame->textWindow) << "Error: " << msg << "\n";
else else
#ifdef __UNIX__ #ifdef __UNIX__
{ {
cerr << "Error: " << msg << "\n"; wxSTD cerr << "Error: " << msg << "\n";
cerr.flush(); wxSTD cerr.flush();
} }
#endif #endif
@@ -1103,8 +1103,8 @@ void OnError(const char *msg)
void OnInform(const char *msg) void OnInform(const char *msg)
{ {
#ifdef NO_GUI #ifdef NO_GUI
cout << msg << "\n"; wxSTD cout << msg << "\n";
cout.flush(); wxSTD cout.flush();
#else #else
if (isInteractive && frame) if (isInteractive && frame)
(*frame->textWindow) << msg << "\n"; (*frame->textWindow) << msg << "\n";
@@ -1116,8 +1116,8 @@ void OnInform(const char *msg)
else else
#ifdef __WXMSW__ #ifdef __WXMSW__
{ {
cout << msg << "\n"; wxSTD cout << msg << "\n";
cout.flush(); wxSTD cout.flush();
} }
#endif #endif
#ifdef __WXMSW__ #ifdef __WXMSW__