Change |Distance| definitions to match forward declaration in nsReadableUtils.h. Fixing Forte bustage.

Thanks to David Baron <dbaron@dbaron.org> for the patch.
Bug #198276 r=jag sr=bz
This commit is contained in:
seawood%netscape.com 2003-03-20 04:52:54 +00:00
parent 95563f3ca8
commit dca257bd56
4 changed files with 8 additions and 10 deletions

View File

@ -42,9 +42,8 @@
class nsASingleFragmentCString;
class nsCString;
NS_COM size_t Distance( const nsAString::const_iterator&, const nsAString::const_iterator& );
NS_COM size_t Distance( const nsACString::const_iterator&, const nsACString::const_iterator& );
NS_COM size_t Distance( const nsReadingIterator<PRUnichar>&, const nsReadingIterator<PRUnichar>& );
NS_COM size_t Distance( const nsReadingIterator<char>&, const nsReadingIterator<char>& );
NS_COM void CopyUCS2toASCII( const nsAString& aSource, nsACString& aDest );
NS_COM void CopyASCIItoUCS2( const nsACString& aSource, nsAString& aDest );

View File

@ -94,14 +94,14 @@ Distance_Impl( const nsReadingIterator<CharT>& aStart,
NS_COM
size_t
Distance( const nsAString::const_iterator& aStart, const nsAString::const_iterator& aEnd )
Distance( const nsReadingIterator<PRUnichar>&aStart, const nsReadingIterator<PRUnichar>&aEnd )
{
return Distance_Impl(aStart, aEnd);
}
NS_COM
size_t
Distance( const nsACString::const_iterator& aStart, const nsACString::const_iterator& aEnd )
Distance( const nsReadingIterator<char>&aStart, const nsReadingIterator<char>&aEnd )
{
return Distance_Impl(aStart, aEnd);
}

View File

@ -42,9 +42,8 @@
class nsASingleFragmentCString;
class nsCString;
NS_COM size_t Distance( const nsAString::const_iterator&, const nsAString::const_iterator& );
NS_COM size_t Distance( const nsACString::const_iterator&, const nsACString::const_iterator& );
NS_COM size_t Distance( const nsReadingIterator<PRUnichar>&, const nsReadingIterator<PRUnichar>& );
NS_COM size_t Distance( const nsReadingIterator<char>&, const nsReadingIterator<char>& );
NS_COM void CopyUCS2toASCII( const nsAString& aSource, nsACString& aDest );
NS_COM void CopyASCIItoUCS2( const nsACString& aSource, nsAString& aDest );

View File

@ -94,14 +94,14 @@ Distance_Impl( const nsReadingIterator<CharT>& aStart,
NS_COM
size_t
Distance( const nsAString::const_iterator& aStart, const nsAString::const_iterator& aEnd )
Distance( const nsReadingIterator<PRUnichar>&aStart, const nsReadingIterator<PRUnichar>&aEnd )
{
return Distance_Impl(aStart, aEnd);
}
NS_COM
size_t
Distance( const nsACString::const_iterator& aStart, const nsACString::const_iterator& aEnd )
Distance( const nsReadingIterator<char>&aStart, const nsReadingIterator<char>&aEnd )
{
return Distance_Impl(aStart, aEnd);
}