Deal with type-unification errors on gcc-2.7.2.3 using NEW_STRING_APIS. r=scc

git-svn-id: svn://10.0.0.236/trunk@69491 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2000-05-13 00:19:21 +00:00
parent 9251d7bb1a
commit 85544a1fd1
3 changed files with 6 additions and 6 deletions

View File

@@ -958,7 +958,7 @@ void nsCString::AssignWithConversion(PRUnichar aChar) {
#ifdef NEW_STRING_APIS
void nsCString::do_AppendFromReadable( const nsAReadableCString& aReadable )
{
if ( SameImplementation(*this, aReadable) )
if ( SameImplementation( NS_STATIC_CAST(const nsAReadableCString&, *this), aReadable) )
StrAppend(*this, NS_STATIC_CAST(const nsCString&, aReadable), 0, aReadable.Length());
else
nsAWritableCString::do_AppendFromReadable(aReadable);
@@ -1200,7 +1200,7 @@ void nsCString::InsertWithConversion(PRUnichar aChar,PRUint32 anOffset){
#ifdef NEW_STRING_APIS
void nsCString::do_InsertFromReadable( const nsAReadableCString& aReadable, PRUint32 atPosition )
{
if ( SameImplementation(*this, aReadable) )
if ( SameImplementation( NS_STATIC_CAST(const nsAReadableCString&, *this), aReadable) )
StrInsert(*this, atPosition, NS_STATIC_CAST(const nsCString&, aReadable), 0, aReadable.Length());
else
nsAWritableCString::do_InsertFromReadable(aReadable, atPosition);