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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**-------------------------------------------------------
|
||||
|
||||
@@ -53,7 +53,7 @@ class CScanner;
|
||||
class CToken {
|
||||
public:
|
||||
CToken(const nsString& aName);
|
||||
~CToken();
|
||||
virtual ~CToken();
|
||||
|
||||
virtual nsString& GetStringValue(void);
|
||||
virtual nsString& GetText(void);
|
||||
|
||||
Reference in New Issue
Block a user