This commit is contained in:
rickg%netscape.com 1999-01-12 08:46:02 +00:00
Родитель 3a4638a52c
Коммит fce949dc46
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -45,7 +45,6 @@ static NS_DEFINE_IID(kIStreamListenerIID, NS_ISTREAMLISTENER_IID);
static const char* kNullURL = "Error: Null URL given";
static const char* kOnStartNotCalled = "Error: OnStartBinding() must be called before OnDataAvailable()";
static const char* kOnStopNotCalled = "Error: OnStopBinding() must be called upon termination of netlib process";
static const char* kBadListenerInit = "Error: Parser's IStreamListener API was not setup correctly in constructor.";
static nsString kUnknownFilename("unknown");
static nsString kEmptyString("unknown");
@ -160,7 +159,9 @@ nsParser::nsParser() : mCommand("") {
* @return
*/
nsParser::~nsParser() {
NS_POSTCONDITION(eOnStop==mParserContext->mStreamListenerState,kOnStopNotCalled);
if(eOnStop!=mParserContext->mStreamListenerState) {
NS_WARNING("OnStop may not have been called");
}
NS_IF_RELEASE(mObserver);
NS_RELEASE(mSink);

Просмотреть файл

@ -45,7 +45,6 @@ static NS_DEFINE_IID(kIStreamListenerIID, NS_ISTREAMLISTENER_IID);
static const char* kNullURL = "Error: Null URL given";
static const char* kOnStartNotCalled = "Error: OnStartBinding() must be called before OnDataAvailable()";
static const char* kOnStopNotCalled = "Error: OnStopBinding() must be called upon termination of netlib process";
static const char* kBadListenerInit = "Error: Parser's IStreamListener API was not setup correctly in constructor.";
static nsString kUnknownFilename("unknown");
static nsString kEmptyString("unknown");
@ -160,7 +159,9 @@ nsParser::nsParser() : mCommand("") {
* @return
*/
nsParser::~nsParser() {
NS_POSTCONDITION(eOnStop==mParserContext->mStreamListenerState,kOnStopNotCalled);
if(eOnStop!=mParserContext->mStreamListenerState) {
NS_WARNING("OnStop may not have been called");
}
NS_IF_RELEASE(mObserver);
NS_RELEASE(mSink);