зеркало из https://github.com/mozilla/pjs.git
nsIParserNode::GetSource should be a const function. bug 374041, r+sr=jst
This commit is contained in:
Родитель
c37f52b2b2
Коммит
814fa4415e
|
@ -167,7 +167,7 @@ class nsIParserNode { // XXX Should be nsAParserNode
|
||||||
* @update rickg 06June2000
|
* @update rickg 06June2000
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
virtual void GetSource(nsString& aString)=0;
|
virtual void GetSource(nsString& aString) const = 0;
|
||||||
|
|
||||||
/** Release all the objects you're holding
|
/** Release all the objects you're holding
|
||||||
* @update harishd 08/02/00
|
* @update harishd 08/02/00
|
||||||
|
|
|
@ -269,7 +269,7 @@ nsCParserNode::PopAttributeToken() {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
nsCParserNode::GetSource(nsString& aString)
|
nsCParserNode::GetSource(nsString& aString) const
|
||||||
{
|
{
|
||||||
eHTMLTags theTag = mToken ? (eHTMLTags)mToken->GetTypeID() : eHTMLTag_unknown;
|
eHTMLTags theTag = mToken ? (eHTMLTags)mToken->GetTypeID() : eHTMLTag_unknown;
|
||||||
aString.Assign(PRUnichar('<'));
|
aString.Assign(PRUnichar('<'));
|
||||||
|
@ -353,7 +353,7 @@ nsCParserStartNode::PopAttributeToken()
|
||||||
return NS_STATIC_CAST(CToken*, mAttributes.Pop());
|
return NS_STATIC_CAST(CToken*, mAttributes.Pop());
|
||||||
}
|
}
|
||||||
|
|
||||||
void nsCParserStartNode::GetSource(nsString& aString)
|
void nsCParserStartNode::GetSource(nsString& aString) const
|
||||||
{
|
{
|
||||||
aString.Assign(PRUnichar('<'));
|
aString.Assign(PRUnichar('<'));
|
||||||
const PRUnichar* theTagName =
|
const PRUnichar* theTagName =
|
||||||
|
|
|
@ -243,7 +243,7 @@ class nsCParserNode : public nsIParserNode {
|
||||||
* @update rickg 06June2000
|
* @update rickg 06June2000
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
virtual void GetSource(nsString& aString);
|
virtual void GetSource(nsString& aString) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This pair of methods allows us to set a generic bit (for arbitrary use)
|
* This pair of methods allows us to set a generic bit (for arbitrary use)
|
||||||
|
@ -314,7 +314,7 @@ public:
|
||||||
virtual const nsAString& GetKeyAt(PRUint32 anIndex) const;
|
virtual const nsAString& GetKeyAt(PRUint32 anIndex) const;
|
||||||
virtual const nsAString& GetValueAt(PRUint32 anIndex) const;
|
virtual const nsAString& GetValueAt(PRUint32 anIndex) const;
|
||||||
virtual CToken* PopAttributeToken();
|
virtual CToken* PopAttributeToken();
|
||||||
virtual void GetSource(nsString& aString);
|
virtual void GetSource(nsString& aString) const;
|
||||||
virtual nsresult ReleaseAll();
|
virtual nsresult ReleaseAll();
|
||||||
protected:
|
protected:
|
||||||
nsDeque mAttributes;
|
nsDeque mAttributes;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче