From dd5aaf0aa745a42d53f4263b8e1b33986d4b5e8d Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Fri, 16 Jul 1999 23:36:04 +0000 Subject: [PATCH] Doing a proper unicode conversion!! --- htmlparser/src/CNavDTD.cpp | 3 ++- parser/htmlparser/src/CNavDTD.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/htmlparser/src/CNavDTD.cpp b/htmlparser/src/CNavDTD.cpp index 0d09f80d1688..b40ab13cba4f 100644 --- a/htmlparser/src/CNavDTD.cpp +++ b/htmlparser/src/CNavDTD.cpp @@ -1085,9 +1085,10 @@ nsresult CNavDTD::WillHandleStartTag(CToken* aToken,eHTMLTags aTag,nsCParserNode theValues[index] = intValue.GetUnicode(); index++; } + nsAutoString theTagStr(NS_EnumToTag(aTag)); CParserContext* pc=mParser->PeekContext(); void* theDocID=(pc) ? pc-> mKey : 0; - nsObserverNotifier theNotifier((PRUnichar*)NS_EnumToTag(aTag),(PRUint32)theDocID,index,theKeys,theValues); + nsObserverNotifier theNotifier(theTagStr.GetUnicode(),(PRUint32)theDocID,index,theKeys,theValues); theDeque->FirstThat(theNotifier); result=theNotifier.mResult; }//if diff --git a/parser/htmlparser/src/CNavDTD.cpp b/parser/htmlparser/src/CNavDTD.cpp index 0d09f80d1688..b40ab13cba4f 100644 --- a/parser/htmlparser/src/CNavDTD.cpp +++ b/parser/htmlparser/src/CNavDTD.cpp @@ -1085,9 +1085,10 @@ nsresult CNavDTD::WillHandleStartTag(CToken* aToken,eHTMLTags aTag,nsCParserNode theValues[index] = intValue.GetUnicode(); index++; } + nsAutoString theTagStr(NS_EnumToTag(aTag)); CParserContext* pc=mParser->PeekContext(); void* theDocID=(pc) ? pc-> mKey : 0; - nsObserverNotifier theNotifier((PRUnichar*)NS_EnumToTag(aTag),(PRUint32)theDocID,index,theKeys,theValues); + nsObserverNotifier theNotifier(theTagStr.GetUnicode(),(PRUint32)theDocID,index,theKeys,theValues); theDeque->FirstThat(theNotifier); result=theNotifier.mResult; }//if