Fix for bug 74786 (String cleanup). Remove Transformiix string wrappers. r=sicking, sr=jst. r=Pike on the Transformiix standalone parts.
git-svn-id: svn://10.0.0.236/trunk@136510 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
#include "ErrorObserver.h"
|
||||
#include "TxString.h"
|
||||
#include "nsString.h"
|
||||
|
||||
/**
|
||||
* Creates a new SimpleErrorObserver.
|
||||
@@ -49,7 +49,7 @@ SimpleErrorObserver::SimpleErrorObserver(ostream& errStream) {
|
||||
/**
|
||||
* Notifies this Error observer of a new error using the given error level
|
||||
**/
|
||||
void SimpleErrorObserver::receiveError(const String& errorMessage,
|
||||
void SimpleErrorObserver::receiveError(const nsAString& errorMessage,
|
||||
nsresult aRes)
|
||||
{
|
||||
#ifdef TX_EXE
|
||||
@@ -57,7 +57,7 @@ void SimpleErrorObserver::receiveError(const String& errorMessage,
|
||||
*errStream << "error: ";
|
||||
}
|
||||
|
||||
*errStream << errorMessage << endl;
|
||||
*errStream << NS_LossyConvertUCS2toASCII(errorMessage).get() << endl;
|
||||
errStream->flush();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user