We'll want support for IsVoid and SetIsVoid on nsACString too. r=jst,dbaron, rs=scc.
git-svn-id: svn://10.0.0.236/trunk@105026 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -27,18 +27,6 @@
|
||||
#include "nsCRT.h"
|
||||
|
||||
|
||||
PRBool
|
||||
nsAString::IsVoid() const
|
||||
{
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
nsAString::SetIsVoid( PRBool )
|
||||
{
|
||||
// |SetIsVoid| is ignored by default
|
||||
}
|
||||
|
||||
int
|
||||
nsDefaultStringComparator::operator()( const PRUnichar* lhs, const PRUnichar* rhs, PRUint32 aLength ) const
|
||||
{
|
||||
@@ -97,14 +85,24 @@ Compare( const nsAString& lhs, const nsAString& rhs, const nsStringComparator& a
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsAString::IsVoid() const
|
||||
{
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
nsAString::SetIsVoid( PRBool )
|
||||
{
|
||||
// |SetIsVoid| is ignored by default
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsAString::Equals( const char_type* rhs ) const
|
||||
{
|
||||
return Equals(nsDependentString(rhs));
|
||||
}
|
||||
|
||||
|
||||
|
||||
nsAString::char_type
|
||||
nsAString::First() const
|
||||
{
|
||||
@@ -562,6 +560,18 @@ Compare( const nsACString& lhs, const nsACString& rhs, const nsCStringComparator
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsACString::IsVoid() const
|
||||
{
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
nsACString::SetIsVoid( PRBool )
|
||||
{
|
||||
// |SetIsVoid| is ignored by default
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsACString::Equals( const char_type* rhs ) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user