зеркало из https://github.com/mozilla/gecko-dev.git
Fixed non-virtual destructor, and incorrect stream usages that
gcc didn't like.
This commit is contained in:
Родитель
660fadbded
Коммит
97f62e2aa2
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче