From 3fc95f8e5339f12138b57f4bdf0e4c3203fd56b7 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Fri, 3 Jun 2005 10:26:28 +0000 Subject: [PATCH] Bug 106386 Correct misspellings in source code patch by ajvincent@gmail.com r=timeless rs=brendan a=chofmann --- config/gtscc.c | 2 +- editor/libeditor/base/nsEditor.cpp | 20 +++++++++---------- editor/libeditor/html/nsHTMLCSSUtils.cpp | 4 ++-- editor/libeditor/html/nsHTMLEditor.cpp | 6 +++--- editor/libeditor/text/nsTextEditRules.cpp | 2 +- .../qa/testembed/winEmbedFileLocProvider.cpp | 2 +- gfx/src/gtk/nsRenderingContextGTK.cpp | 2 +- intl/uconv/idl/nsITextToSubURI.idl | 2 +- mailnews/mime/src/mimecont.cpp | 2 +- mailnews/mime/src/mimeleaf.cpp | 2 +- mailnews/mime/src/mimemult.cpp | 2 +- mailnews/mime/src/mimeobj.cpp | 2 +- mailnews/mime/src/mimetext.cpp | 2 +- .../protocol/gopher/src/nsGopherChannel.cpp | 2 +- .../src/nsStreamConverterService.cpp | 4 ++-- profile/resources/content/profileManager.js | 2 +- toolkit/xre/nsINativeAppSupport.idl | 2 +- widget/src/gtk/nsDragService.cpp | 2 +- widget/src/gtk2/nsDragService.cpp | 2 +- widget/src/mac/nsMacControl.cpp | 4 ++-- xpcom/glue/nsDebug.h | 4 ++-- 21 files changed, 36 insertions(+), 36 deletions(-) diff --git a/config/gtscc.c b/config/gtscc.c index 91df635c63c6..638d7d6ee7f5 100644 --- a/config/gtscc.c +++ b/config/gtscc.c @@ -1453,7 +1453,7 @@ test_for_file(char* foo, char* buf) return foo; } #else - printf("test_for_file() not implimented\n"); + printf("test_for_file() not implemented\n"); #endif return NULL; } diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index 85b3f4c2652b..07f6f4d54823 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -1230,7 +1230,7 @@ nsEditor::SetAttribute(nsIDOMElement *aElement, const nsAString & aAttribute, co if (NS_SUCCEEDED(result)) { result = DoTransaction(txn); } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); return result; } @@ -1266,7 +1266,7 @@ nsEditor::RemoveAttribute(nsIDOMElement *aElement, const nsAString& aAttribute) if (NS_SUCCEEDED(result)) { result = DoTransaction(txn); } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); return result; } @@ -1336,7 +1336,7 @@ NS_IMETHODIMP nsEditor::CreateNode(const nsAString& aTag, NS_ASSERTION((NS_SUCCEEDED(result)), "GetNewNode can't fail if txn::DoTransaction succeeded."); } } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); mRangeUpdater.SelAdjCreateNode(aParent, aPosition); @@ -1378,7 +1378,7 @@ NS_IMETHODIMP nsEditor::InsertNode(nsIDOMNode * aNode, if (NS_SUCCEEDED(result)) { result = DoTransaction(txn); } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); mRangeUpdater.SelAdjInsertNode(aParent, aPosition); @@ -1427,7 +1427,7 @@ nsEditor::SplitNode(nsIDOMNode * aNode, NS_ASSERTION((NS_SUCCEEDED(result)), "result must succeeded for GetNewNode"); } } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); mRangeUpdater.SelAdjSplitNode(aNode, aOffset, *aNewLeftNode); @@ -1484,7 +1484,7 @@ nsEditor::JoinNodes(nsIDOMNode * aLeftNode, result = DoTransaction(txn); } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); mRangeUpdater.SelAdjJoinNodes(aLeftNode, aRightNode, aParent, offset, (PRInt32)oldLeftNodeLen); @@ -1530,7 +1530,7 @@ NS_IMETHODIMP nsEditor::DeleteNode(nsIDOMNode * aElement) result = DoTransaction(txn); } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); if (mActionListeners) @@ -2782,7 +2782,7 @@ NS_IMETHODIMP nsEditor::InsertTextIntoTextNodeImpl(const nsAString& aStringToIns } } - // The transaction system (if any) has taken ownwership of txns. + // The transaction system (if any) has taken ownership of txns. // aggTxn released at end of routine. NS_IF_RELEASE(txn); return result; @@ -2969,7 +2969,7 @@ NS_IMETHODIMP nsEditor::DeleteText(nsIDOMCharacterData *aElement, } } } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); return result; } @@ -4628,7 +4628,7 @@ nsEditor::DeleteSelectionImpl(nsIEditor::EDirection aAction) } } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); return res; diff --git a/editor/libeditor/html/nsHTMLCSSUtils.cpp b/editor/libeditor/html/nsHTMLCSSUtils.cpp index c4ec048f25a3..e309b42bad3f 100644 --- a/editor/libeditor/html/nsHTMLCSSUtils.cpp +++ b/editor/libeditor/html/nsHTMLCSSUtils.cpp @@ -474,7 +474,7 @@ nsHTMLCSSUtils::SetCSSProperty(nsIDOMElement *aElement, nsIAtom * aProperty, con result = mHTMLEditor->DoTransaction(txn); } } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); return result; } @@ -508,7 +508,7 @@ nsHTMLCSSUtils::RemoveCSSProperty(nsIDOMElement *aElement, nsIAtom * aProperty, result = mHTMLEditor->DoTransaction(txn); } } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); return result; } diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index 948506c2b1c3..c63b5feee47b 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -686,7 +686,7 @@ nsHTMLEditor::SetDocumentTitle(const nsAString &aTitle) result = nsEditor::DoTransaction(txn); } - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); } return result; @@ -3535,7 +3535,7 @@ nsHTMLEditor::RemoveStyleSheet(const nsAString &aURL) rv = RemoveStyleSheetFromList(aURL); NS_ENSURE_SUCCESS(rv, rv); } - // The transaction system (if any) has taken ownwership of txns + // The transaction system (if any) has taken ownership of txns NS_IF_RELEASE(txn); return rv; @@ -4183,7 +4183,7 @@ nsHTMLEditor::StyleSheetLoaded(nsICSSStyleSheet* aSheet, PRBool aNotify) AddNewStyleSheetToList(mLastStyleSheetURL, aSheet); } } - // The transaction system (if any) has taken ownwership of txns + // The transaction system (if any) has taken ownership of txns NS_IF_RELEASE(txn); return NS_OK; diff --git a/editor/libeditor/text/nsTextEditRules.cpp b/editor/libeditor/text/nsTextEditRules.cpp index 1d7dc9a173ff..08ff80e52f4c 100644 --- a/editor/libeditor/text/nsTextEditRules.cpp +++ b/editor/libeditor/text/nsTextEditRules.cpp @@ -1201,7 +1201,7 @@ nsTextEditRules::ReplaceNewlines(nsIDOMRange *aRange) if (!txn) return NS_ERROR_OUT_OF_MEMORY; res = mEditor->DoTransaction(txn); if (NS_FAILED(res)) return res; - // The transaction system (if any) has taken ownwership of txn + // The transaction system (if any) has taken ownership of txn NS_IF_RELEASE(txn); // insert a break diff --git a/embedding/qa/testembed/winEmbedFileLocProvider.cpp b/embedding/qa/testembed/winEmbedFileLocProvider.cpp index 1c4e0bac7e08..4b8dc51b55cb 100644 --- a/embedding/qa/testembed/winEmbedFileLocProvider.cpp +++ b/embedding/qa/testembed/winEmbedFileLocProvider.cpp @@ -232,7 +232,7 @@ static char * GetGreLocationFromRegistry() // In this case GetGreDirectory() creates a new localFile based on the // GRE path it just read from the registry // -// If the embedding appliction is not using an GRE and is running in +// If the embedding application is not using an GRE and is running in // a "regular" embedding scenario GetGreDirectory() simply returns a // failure code indicating to the caller to fallback to a non-GRE // based operation - which is the default mode of operation. diff --git a/gfx/src/gtk/nsRenderingContextGTK.cpp b/gfx/src/gtk/nsRenderingContextGTK.cpp index 53410e5fea94..5102eb6b0780 100644 --- a/gfx/src/gtk/nsRenderingContextGTK.cpp +++ b/gfx/src/gtk/nsRenderingContextGTK.cpp @@ -1385,7 +1385,7 @@ nsRenderingContextGTK::CopyOffScreenBits(nsIDrawingSurface* aSrcSurf, mTranMatrix->TransformCoord(&drect.x, &drect.y, &drect.width, &drect.height); #if 0 - // XXX impliment me + // XXX implement me if (aCopyFlags & NS_COPYBITS_USE_SOURCE_CLIP_REGION) { // we should use the source clip region if this flag is used... diff --git a/intl/uconv/idl/nsITextToSubURI.idl b/intl/uconv/idl/nsITextToSubURI.idl index 938cc46163f3..7baf1db536aa 100644 --- a/intl/uconv/idl/nsITextToSubURI.idl +++ b/intl/uconv/idl/nsITextToSubURI.idl @@ -76,7 +76,7 @@ interface nsITextToSubURI : nsISupports * @param aURIFragment the URI (or URI fragment) to unescape * @return Unescaped aURIFragment converted to unicode * @throws NS_ERROR_UCONV_NOCONV when there is no decoder for aCharset - * or error code of nsIUnicodeDecoder in case of covnersion failure + * or error code of nsIUnicodeDecoder in case of conversion failure */ AString unEscapeNonAsciiURI(in ACString aCharset, in AUTF8String aURIFragment); }; diff --git a/mailnews/mime/src/mimecont.cpp b/mailnews/mime/src/mimecont.cpp index 49991f17ae7a..107c5c912dbe 100644 --- a/mailnews/mime/src/mimecont.cpp +++ b/mailnews/mime/src/mimecont.cpp @@ -81,7 +81,7 @@ MimeContainerClassInitialize(MimeContainerClass *clazz) static int MimeContainer_initialize (MimeObject *object) { - /* This is an abstract class; it shouldn't be directly instanciated. */ + /* This is an abstract class; it shouldn't be directly instantiated. */ NS_ASSERTION(object->clazz != (MimeObjectClass *) &mimeContainerClass, "1.1 19 Mar 1999 12:00"); return ((MimeObjectClass*)&MIME_SUPERCLASS)->initialize(object); diff --git a/mailnews/mime/src/mimeleaf.cpp b/mailnews/mime/src/mimeleaf.cpp index 2c8eb230c560..d0e819f6e07b 100644 --- a/mailnews/mime/src/mimeleaf.cpp +++ b/mailnews/mime/src/mimeleaf.cpp @@ -86,7 +86,7 @@ MimeLeafClassInitialize(MimeLeafClass *clazz) static int MimeLeaf_initialize (MimeObject *obj) { - /* This is an abstract class; it shouldn't be directly instanciated. */ + /* This is an abstract class; it shouldn't be directly instantiated. */ NS_ASSERTION(obj->clazz != (MimeObjectClass *) &mimeLeafClass, "1.1 19 Mar 1999 12:00"); return ((MimeObjectClass*)&MIME_SUPERCLASS)->initialize(obj); diff --git a/mailnews/mime/src/mimemult.cpp b/mailnews/mime/src/mimemult.cpp index 842eb6fc8d6d..3857f3f813ba 100644 --- a/mailnews/mime/src/mimemult.cpp +++ b/mailnews/mime/src/mimemult.cpp @@ -111,7 +111,7 @@ MimeMultipart_initialize (MimeObject *object) MimeMultipart *mult = (MimeMultipart *) object; char *ct; - /* This is an abstract class; it shouldn't be directly instanciated. */ + /* This is an abstract class; it shouldn't be directly instantiated. */ PR_ASSERT(object->clazz != (MimeObjectClass *) &mimeMultipartClass); ct = MimeHeaders_get (object->headers, HEADER_CONTENT_TYPE, PR_FALSE, PR_FALSE); diff --git a/mailnews/mime/src/mimeobj.cpp b/mailnews/mime/src/mimeobj.cpp index 8d5ef8ce13c7..934ab6c9257e 100644 --- a/mailnews/mime/src/mimeobj.cpp +++ b/mailnews/mime/src/mimeobj.cpp @@ -99,7 +99,7 @@ MimeObjectClassInitialize(MimeObjectClass *clazz) static int MimeObject_initialize (MimeObject *obj) { - /* This is an abstract class; it shouldn't be directly instanciated. */ + /* This is an abstract class; it shouldn't be directly instantiated. */ NS_ASSERTION(obj->clazz != &mimeObjectClass, "should directly instantiate abstract class"); /* Set up the content-type and encoding. */ diff --git a/mailnews/mime/src/mimetext.cpp b/mailnews/mime/src/mimetext.cpp index b7a9dd3dcb02..0fcc1d9bb451 100644 --- a/mailnews/mime/src/mimetext.cpp +++ b/mailnews/mime/src/mimetext.cpp @@ -94,7 +94,7 @@ MimeInlineTextClassInitialize(MimeInlineTextClass *clazz) static int MimeInlineText_initialize (MimeObject *obj) { - /* This is an abstract class; it shouldn't be directly instanciated. */ + /* This is an abstract class; it shouldn't be directly instantiated. */ PR_ASSERT(obj->clazz != (MimeObjectClass *) &mimeInlineTextClass); ((MimeInlineText *) obj)->initializeCharset = PR_FALSE; diff --git a/netwerk/protocol/gopher/src/nsGopherChannel.cpp b/netwerk/protocol/gopher/src/nsGopherChannel.cpp index 309331cd18cf..8b0f3fb39de9 100644 --- a/netwerk/protocol/gopher/src/nsGopherChannel.cpp +++ b/netwerk/protocol/gopher/src/nsGopherChannel.cpp @@ -38,7 +38,7 @@ * * ***** END LICENSE BLOCK ***** */ -// gopher implementation - based on datetime and finger implimentations +// gopher implementation - based on datetime and finger implementations // and documentation #include "nsGopherChannel.h" diff --git a/netwerk/streamconv/src/nsStreamConverterService.cpp b/netwerk/streamconv/src/nsStreamConverterService.cpp index d5368e556a7d..fbddbd1fa0ce 100644 --- a/netwerk/streamconv/src/nsStreamConverterService.cpp +++ b/netwerk/streamconv/src/nsStreamConverterService.cpp @@ -482,7 +482,7 @@ nsStreamConverterService::Convert(nsIInputStream *aFromStream, if (!aFromStream || !aFromType || !aToType || !_retval) return NS_ERROR_NULL_POINTER; nsresult rv; - // first determine whether we can even handle this covnversion + // first determine whether we can even handle this conversion // build a CONTRACTID nsCAutoString contractID; contractID.AssignLiteral(NS_ISTREAMCONVERTER_KEY "?from="); @@ -568,7 +568,7 @@ nsStreamConverterService::AsyncConvertData(const char *aFromType, nsresult rv; - // first determine whether we can even handle this covnversion + // first determine whether we can even handle this conversion // build a CONTRACTID nsCAutoString contractID; contractID.AssignLiteral(NS_ISTREAMCONVERTER_KEY "?from="); diff --git a/profile/resources/content/profileManager.js b/profile/resources/content/profileManager.js index 2abe41872256..8c0779fb8f0d 100644 --- a/profile/resources/content/profileManager.js +++ b/profile/resources/content/profileManager.js @@ -40,7 +40,7 @@ * ***** END LICENSE BLOCK ***** */ //NOTE: This script expects gBrandBundle and gProfileManagerBundle to be -// instanciated elsewhere (currently from StartUp in profileSelection.js) +// instantiated elsewhere (currently from StartUp in profileSelection.js) var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService); var profileManagerMode = "selection"; diff --git a/toolkit/xre/nsINativeAppSupport.idl b/toolkit/xre/nsINativeAppSupport.idl index 2400bf62db8c..80cad388cd53 100644 --- a/toolkit/xre/nsINativeAppSupport.idl +++ b/toolkit/xre/nsINativeAppSupport.idl @@ -43,7 +43,7 @@ /* nsINativeAppSupport * * This "pseudo" (in the XPCOM sense) interface provides for - * platform-specific general aplication support: + * platform-specific general application support: * o It manages the details of the simple DDE communication * supported on the Win32 platform (it is the addition of this * item that prompted the creation of this interface. diff --git a/widget/src/gtk/nsDragService.cpp b/widget/src/gtk/nsDragService.cpp index fdceacd3654d..78f10eecca4b 100644 --- a/widget/src/gtk/nsDragService.cpp +++ b/widget/src/gtk/nsDragService.cpp @@ -831,7 +831,7 @@ nsDragService::GetSourceList(void) // gtk's implementation?), we don't advertise all flavours listed // in the nsITransferable. - // the aplication/x-moz-internal-item-list format, which preserves + // the application/x-moz-internal-item-list format, which preserves // all information for drags within the same mozilla instance. GdkAtom listAtom = gdk_atom_intern(gMimeListType, FALSE); GtkTargetEntry *listTarget = (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); diff --git a/widget/src/gtk2/nsDragService.cpp b/widget/src/gtk2/nsDragService.cpp index 824cabc3e034..7a62c32f47ee 100644 --- a/widget/src/gtk2/nsDragService.cpp +++ b/widget/src/gtk2/nsDragService.cpp @@ -847,7 +847,7 @@ nsDragService::GetSourceList(void) // gtk's implementation?), we don't advertise all flavours listed // in the nsITransferable. - // the aplication/x-moz-internal-item-list format, which preserves + // the application/x-moz-internal-item-list format, which preserves // all information for drags within the same mozilla instance. GdkAtom listAtom = gdk_atom_intern(gMimeListType, FALSE); GtkTargetEntry *listTarget = diff --git a/widget/src/mac/nsMacControl.cpp b/widget/src/mac/nsMacControl.cpp index ae6f9f66f117..fd4e281296a4 100644 --- a/widget/src/mac/nsMacControl.cpp +++ b/widget/src/mac/nsMacControl.cpp @@ -414,7 +414,7 @@ void nsMacControl::StringToStr255(const nsAString& aText, Str255& aStr255) } if (NS_FAILED(rv)) { -// NS_ASSERTION(0, "error: charset covnersion"); +// NS_ASSERTION(0, "error: charset conversion"); NS_LossyConvertUCS2toASCII buffer(Substring(aText,0,254)); PRInt32 len = buffer.Length(); memcpy(&aStr255[1], buffer.get(), len); @@ -455,7 +455,7 @@ void nsMacControl::Str255ToString(const Str255& aStr255, nsString& aText) } if (NS_FAILED(rv)) { -// NS_ASSERTION(0, "error: charset covnersion"); +// NS_ASSERTION(0, "error: charset conversion"); aText.AssignWithConversion((char *) &aStr255[1], aStr255[0]); } } diff --git a/xpcom/glue/nsDebug.h b/xpcom/glue/nsDebug.h index e9069ed149e1..89c81442fc17 100644 --- a/xpcom/glue/nsDebug.h +++ b/xpcom/glue/nsDebug.h @@ -160,14 +160,14 @@ public: /** * This macros triggers a program failure if executed. It indicates that - * an attempt was made to execute some unimplimented functionality. + * an attempt was made to execute some unimplemented functionality. */ #define NS_NOTYETIMPLEMENTED(str) \ nsDebug::Assertion(str, "NotYetImplemented", __FILE__, __LINE__) /** * This macros triggers a program failure if executed. It indicates that - * an attempt was made to execute some unimplimented functionality. + * an attempt was made to execute some unimplemented functionality. */ #define NS_NOTREACHED(str) \ nsDebug::Assertion(str, "Not Reached", __FILE__, __LINE__)