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