From d3bc2fbac55816678930cebfd0ef3b02a76672a0 Mon Sep 17 00:00:00 2001 From: "brendan%netscape.com" Date: Wed, 28 Apr 1999 00:38:49 +0000 Subject: [PATCH] Fix typos and other comment nits. --- string/obsolete/nsXPIDLString.h | 10 +++++----- xpcom/ds/nsXPIDLString.h | 10 +++++----- xpcom/public/nsXPIDLString.h | 10 +++++----- xpcom/string/obsolete/nsXPIDLString.h | 10 +++++----- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/string/obsolete/nsXPIDLString.h b/string/obsolete/nsXPIDLString.h index e1a4e440570..7cdc558dfcc 100644 --- a/string/obsolete/nsXPIDLString.h +++ b/string/obsolete/nsXPIDLString.h @@ -45,8 +45,8 @@ // Use bar here... delete[] bar; - (Strictly speaking, The `delete[] bar' would use the proper XPCOM - de-allocator, we'll ignore that for now.) This makes your life + (Strictly speaking, the `delete[] bar' should use the proper XPCOM + de-allocator that; we'll ignore that for now.) This makes your life harder, because you need to convolute your code to ensure that you don't leak `bar'. @@ -107,7 +107,7 @@ public: virtual ~nsXPIDLString(); /** - * Return an immutable reference to the Unicode string. + * Return a reference to the immutable Unicode string. */ operator const PRUnichar*(); @@ -191,7 +191,7 @@ getter_Shares(nsXPIDLString& aXPIDLString) // // A wrapper for Unicode strings. With the |getter_Copies()| and // |getter_Shares()| helper functions, this can be used instead of -// the "naked" |char*| interface for |wstring| parameters in XPIDL +// the "naked" |char*| interface for |string| parameters in XPIDL // interfaces. // @@ -212,7 +212,7 @@ public: virtual ~nsXPIDLCString(); /** - * Return an immutable reference to the single-byte string. + * Return a reference to the immutable single-byte string. */ operator const char*(); diff --git a/xpcom/ds/nsXPIDLString.h b/xpcom/ds/nsXPIDLString.h index e1a4e440570..7cdc558dfcc 100644 --- a/xpcom/ds/nsXPIDLString.h +++ b/xpcom/ds/nsXPIDLString.h @@ -45,8 +45,8 @@ // Use bar here... delete[] bar; - (Strictly speaking, The `delete[] bar' would use the proper XPCOM - de-allocator, we'll ignore that for now.) This makes your life + (Strictly speaking, the `delete[] bar' should use the proper XPCOM + de-allocator that; we'll ignore that for now.) This makes your life harder, because you need to convolute your code to ensure that you don't leak `bar'. @@ -107,7 +107,7 @@ public: virtual ~nsXPIDLString(); /** - * Return an immutable reference to the Unicode string. + * Return a reference to the immutable Unicode string. */ operator const PRUnichar*(); @@ -191,7 +191,7 @@ getter_Shares(nsXPIDLString& aXPIDLString) // // A wrapper for Unicode strings. With the |getter_Copies()| and // |getter_Shares()| helper functions, this can be used instead of -// the "naked" |char*| interface for |wstring| parameters in XPIDL +// the "naked" |char*| interface for |string| parameters in XPIDL // interfaces. // @@ -212,7 +212,7 @@ public: virtual ~nsXPIDLCString(); /** - * Return an immutable reference to the single-byte string. + * Return a reference to the immutable single-byte string. */ operator const char*(); diff --git a/xpcom/public/nsXPIDLString.h b/xpcom/public/nsXPIDLString.h index e1a4e440570..7cdc558dfcc 100644 --- a/xpcom/public/nsXPIDLString.h +++ b/xpcom/public/nsXPIDLString.h @@ -45,8 +45,8 @@ // Use bar here... delete[] bar; - (Strictly speaking, The `delete[] bar' would use the proper XPCOM - de-allocator, we'll ignore that for now.) This makes your life + (Strictly speaking, the `delete[] bar' should use the proper XPCOM + de-allocator that; we'll ignore that for now.) This makes your life harder, because you need to convolute your code to ensure that you don't leak `bar'. @@ -107,7 +107,7 @@ public: virtual ~nsXPIDLString(); /** - * Return an immutable reference to the Unicode string. + * Return a reference to the immutable Unicode string. */ operator const PRUnichar*(); @@ -191,7 +191,7 @@ getter_Shares(nsXPIDLString& aXPIDLString) // // A wrapper for Unicode strings. With the |getter_Copies()| and // |getter_Shares()| helper functions, this can be used instead of -// the "naked" |char*| interface for |wstring| parameters in XPIDL +// the "naked" |char*| interface for |string| parameters in XPIDL // interfaces. // @@ -212,7 +212,7 @@ public: virtual ~nsXPIDLCString(); /** - * Return an immutable reference to the single-byte string. + * Return a reference to the immutable single-byte string. */ operator const char*(); diff --git a/xpcom/string/obsolete/nsXPIDLString.h b/xpcom/string/obsolete/nsXPIDLString.h index e1a4e440570..7cdc558dfcc 100644 --- a/xpcom/string/obsolete/nsXPIDLString.h +++ b/xpcom/string/obsolete/nsXPIDLString.h @@ -45,8 +45,8 @@ // Use bar here... delete[] bar; - (Strictly speaking, The `delete[] bar' would use the proper XPCOM - de-allocator, we'll ignore that for now.) This makes your life + (Strictly speaking, the `delete[] bar' should use the proper XPCOM + de-allocator that; we'll ignore that for now.) This makes your life harder, because you need to convolute your code to ensure that you don't leak `bar'. @@ -107,7 +107,7 @@ public: virtual ~nsXPIDLString(); /** - * Return an immutable reference to the Unicode string. + * Return a reference to the immutable Unicode string. */ operator const PRUnichar*(); @@ -191,7 +191,7 @@ getter_Shares(nsXPIDLString& aXPIDLString) // // A wrapper for Unicode strings. With the |getter_Copies()| and // |getter_Shares()| helper functions, this can be used instead of -// the "naked" |char*| interface for |wstring| parameters in XPIDL +// the "naked" |char*| interface for |string| parameters in XPIDL // interfaces. // @@ -212,7 +212,7 @@ public: virtual ~nsXPIDLCString(); /** - * Return an immutable reference to the single-byte string. + * Return a reference to the immutable single-byte string. */ operator const char*();