get rid of "hiding inherited virtual method" warnings on CanContain() by making it const like it's parent class.

git-svn-id: svn://10.0.0.236/trunk@14606 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com 1998-11-13 20:04:27 +00:00
parent 96298d61de
commit e94b269309
4 changed files with 4 additions and 4 deletions

View File

@ -362,7 +362,7 @@ nsresult COtherDTD::HandleStyleToken(CToken* aToken){
* @param aChild -- tag enum of child container
* @return PR_TRUE if parent can contain child
*/
PRBool COtherDTD::CanContain(PRInt32 aParent,PRInt32 aChild) {
PRBool COtherDTD::CanContain(PRInt32 aParent,PRInt32 aChild) const {
return CNavDTD::CanContain(aParent,aChild);
}

View File

@ -153,7 +153,7 @@ class COtherDTD : public CNavDTD {
* @param aChild -- int tag of child container
* @return PR_TRUE if parent can contain child
*/
virtual PRBool CanContain(PRInt32 aParent,PRInt32 aChild);
virtual PRBool CanContain(PRInt32 aParent,PRInt32 aChild) const;
/**
* This method is called to determine whether or not a tag

View File

@ -362,7 +362,7 @@ nsresult COtherDTD::HandleStyleToken(CToken* aToken){
* @param aChild -- tag enum of child container
* @return PR_TRUE if parent can contain child
*/
PRBool COtherDTD::CanContain(PRInt32 aParent,PRInt32 aChild) {
PRBool COtherDTD::CanContain(PRInt32 aParent,PRInt32 aChild) const {
return CNavDTD::CanContain(aParent,aChild);
}

View File

@ -153,7 +153,7 @@ class COtherDTD : public CNavDTD {
* @param aChild -- int tag of child container
* @return PR_TRUE if parent can contain child
*/
virtual PRBool CanContain(PRInt32 aParent,PRInt32 aChild);
virtual PRBool CanContain(PRInt32 aParent,PRInt32 aChild) const;
/**
* This method is called to determine whether or not a tag