Fixed non-virtual destructor, and incorrect stream usages that

gcc didn't like.


git-svn-id: svn://10.0.0.236/trunk@556 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scullin
1998-04-23 19:10:35 +00:00
parent ae47b469c0
commit 5497189f2b
6 changed files with 8 additions and 6 deletions

View File

@@ -79,7 +79,7 @@ static void DebugDump(const char* str1,const nsString& str2,PRInt32 tabs) {
for(PRInt32 i=0;i<tabs;i++)
cout << " "; //add some tabbing to debug output...
char* cp = str2.ToNewCString();
cout << str1 << cout << cp << ">" << endl;
cout << str1 << cp << ">" << endl;
delete cp;
}
#endif

View File

@@ -85,7 +85,8 @@ void CToken::DebugDumpToken(ostream& anOutputStream) {
* @param ostream -- output stream to accept output data
*------------------------------------------------------*/
void CToken::DebugDumpSource(ostream& anOutputStream) {
anOutputStream << mTextValue;
char buf[256];
anOutputStream << mTextValue.ToCString(buf, 256);
}
/**-------------------------------------------------------

View File

@@ -53,7 +53,7 @@ class CScanner;
class CToken {
public:
CToken(const nsString& aName);
~CToken();
virtual ~CToken();
virtual nsString& GetStringValue(void);
virtual nsString& GetText(void);