OK, Windows is going to complain about the change from unsigned to signed, so we'll save that for later

This commit is contained in:
scc%mozilla.org 2001-06-29 12:58:44 +00:00
Родитель 49e26feed8
Коммит 9f85882805
4 изменённых файлов: 12 добавлений и 8 удалений

Просмотреть файл

@ -36,7 +36,7 @@ class NS_COM nsAFlatString
public:
// don't really want this to be virtual, and won't after |obsolete_nsString| is really dead
virtual const PRUnichar* get() const;
PRUnichar operator[]( int i ) const { return get()[ i ]; }
PRUnichar operator[]( PRUint32 i ) const { return get()[ i ]; }
PRUnichar CharAt( PRUint32 ) const;
virtual PRUint32 Length() const;
@ -53,7 +53,7 @@ class NS_COM nsAFlatCString
public:
// don't really want this to be virtual, and won't after |obsolete_nsCString| is really dead
virtual const char* get() const;
char operator[]( int i ) const { return get()[ i ]; }
char operator[]( PRUint32 i ) const { return get()[ i ]; }
char CharAt( PRUint32 ) const;
virtual PRUint32 Length() const;
@ -69,7 +69,7 @@ PRUnichar
nsAFlatString::CharAt( PRUint32 i ) const
{
NS_ASSERTION(i<Length(), "|CharAt| out-of-range");
return operator[](int(i));
return operator[](i);
}
inline
@ -77,7 +77,7 @@ char
nsAFlatCString::CharAt( PRUint32 i ) const
{
NS_ASSERTION(i<Length(), "|CharAt| out-of-range");
return operator[](int(i));
return operator[](i);
}

Просмотреть файл

@ -106,6 +106,7 @@ class NS_COM nsXPIDLString
// deprecated, to be eliminated
operator const PRUnichar*() const { return get(); }
PRUnichar operator[]( int i ) const { return get()[ i ]; }
class getter_Copies_t
@ -199,6 +200,7 @@ class NS_COM nsXPIDLCString
// deprecated, to be eliminated
operator const char*() const { return get(); }
char operator[]( int i ) const { return get()[ i ]; }
class getter_Copies_t

Просмотреть файл

@ -36,7 +36,7 @@ class NS_COM nsAFlatString
public:
// don't really want this to be virtual, and won't after |obsolete_nsString| is really dead
virtual const PRUnichar* get() const;
PRUnichar operator[]( int i ) const { return get()[ i ]; }
PRUnichar operator[]( PRUint32 i ) const { return get()[ i ]; }
PRUnichar CharAt( PRUint32 ) const;
virtual PRUint32 Length() const;
@ -53,7 +53,7 @@ class NS_COM nsAFlatCString
public:
// don't really want this to be virtual, and won't after |obsolete_nsCString| is really dead
virtual const char* get() const;
char operator[]( int i ) const { return get()[ i ]; }
char operator[]( PRUint32 i ) const { return get()[ i ]; }
char CharAt( PRUint32 ) const;
virtual PRUint32 Length() const;
@ -69,7 +69,7 @@ PRUnichar
nsAFlatString::CharAt( PRUint32 i ) const
{
NS_ASSERTION(i<Length(), "|CharAt| out-of-range");
return operator[](int(i));
return operator[](i);
}
inline
@ -77,7 +77,7 @@ char
nsAFlatCString::CharAt( PRUint32 i ) const
{
NS_ASSERTION(i<Length(), "|CharAt| out-of-range");
return operator[](int(i));
return operator[](i);
}

Просмотреть файл

@ -106,6 +106,7 @@ class NS_COM nsXPIDLString
// deprecated, to be eliminated
operator const PRUnichar*() const { return get(); }
PRUnichar operator[]( int i ) const { return get()[ i ]; }
class getter_Copies_t
@ -199,6 +200,7 @@ class NS_COM nsXPIDLCString
// deprecated, to be eliminated
operator const char*() const { return get(); }
char operator[]( int i ) const { return get()[ i ]; }
class getter_Copies_t