From 4e824a69a2a66e29033b2fe10a51de2cdff94d7b Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Fri, 19 Feb 1999 19:21:25 +0000 Subject: [PATCH] Turn on Unix cout code for doCopy() --- webshell/tests/viewer/nsBrowserWindow.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/webshell/tests/viewer/nsBrowserWindow.cpp b/webshell/tests/viewer/nsBrowserWindow.cpp index 0957aac7c303..9f67a9c3a640 100644 --- a/webshell/tests/viewer/nsBrowserWindow.cpp +++ b/webshell/tests/viewer/nsBrowserWindow.cpp @@ -2188,14 +2188,12 @@ nsBrowserWindow::DoCopy() #if defined(XP_WIN) #define USE_STRSTREAM 1 #endif -#ifdef DEBUG_akkana // Leave this commented out until we're sure it won't crash Linux #if defined(XP_UNIX) -#define USE_OSTREAM 1 -#endif +#define USE_COUT 1 #endif -#if defined(USE_STRINGSTREAM) || defined(USE_STRSTREAM) || defined(USE_OSTREAM) +#if defined(USE_STRINGSTREAM) || defined(USE_STRSTREAM) || defined(USE_COUT) #if defined(USE_STRINGSTREAM) stringstream data; @@ -2203,8 +2201,9 @@ nsBrowserWindow::DoCopy() #if defined(USE_STRSTREAM) ostrstream data; #else -#if defined(USE_OSTREAM) - ostream data; +#if defined(USE_COUT) +#define data cout + data << "Copied text:" << endl << "------------" << endl; #endif #endif #endif @@ -2233,6 +2232,10 @@ nsBrowserWindow::DoCopy() PRInt32 len = data.pcount(); char* str = (char*)data.str(); #endif +#if defined(USE_COUT) +#define data cout + data << "------------ End Copied Text" << endl; +#endif #endif #if defined(WIN32)