From 9f85882805168df56bf3ddcf999a1dfa9dfe1dc5 Mon Sep 17 00:00:00 2001 From: "scc%mozilla.org" Date: Fri, 29 Jun 2001 12:58:44 +0000 Subject: [PATCH] OK, Windows is going to complain about the change from unsigned to signed, so we'll save that for later --- string/public/nsAFlatString.h | 8 ++++---- string/public/nsXPIDLString.h | 2 ++ xpcom/string/public/nsAFlatString.h | 8 ++++---- xpcom/string/public/nsXPIDLString.h | 2 ++ 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/string/public/nsAFlatString.h b/string/public/nsAFlatString.h index 79fe6be866b..c197bbf32ed 100644 --- a/string/public/nsAFlatString.h +++ b/string/public/nsAFlatString.h @@ -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