From 464be8ac2eb66cb139b766d7e1db0257d1666245 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 git-svn-id: svn://10.0.0.236/trunk@174115 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/config/gtscc.c | 2 +- mozilla/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 +- mozilla/gfx/src/gtk/nsRenderingContextGTK.cpp | 2 +- mozilla/intl/uconv/idl/nsITextToSubURI.idl | 2 +- mozilla/mailnews/mime/src/mimecont.cpp | 2 +- mozilla/mailnews/mime/src/mimeleaf.cpp | 2 +- mozilla/mailnews/mime/src/mimemult.cpp | 2 +- mozilla/mailnews/mime/src/mimeobj.cpp | 2 +- mozilla/mailnews/mime/src/mimetext.cpp | 2 +- .../protocol/gopher/src/nsGopherChannel.cpp | 2 +- .../src/nsStreamConverterService.cpp | 4 ++-- .../resources/content/profileManager.js | 2 +- mozilla/toolkit/xre/nsINativeAppSupport.idl | 2 +- mozilla/widget/src/gtk/nsDragService.cpp | 2 +- mozilla/widget/src/gtk2/nsDragService.cpp | 2 +- mozilla/widget/src/mac/nsMacControl.cpp | 4 ++-- mozilla/xpcom/glue/nsDebug.h | 4 ++-- 21 files changed, 36 insertions(+), 36 deletions(-) diff --git a/mozilla/config/gtscc.c b/mozilla/config/gtscc.c index 91df635c63c..638d7d6ee7f 100644 --- a/mozilla/config/gtscc.c +++ b/mozilla/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/mozilla/editor/libeditor/base/nsEditor.cpp b/mozilla/editor/libeditor/base/nsEditor.cpp index 85b3f4c2652..07f6f4d5482 100644 --- a/mozilla/editor/libeditor/base/nsEditor.cpp +++ b/mozilla/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/mozilla/editor/libeditor/html/nsHTMLCSSUtils.cpp b/mozilla/editor/libeditor/html/nsHTMLCSSUtils.cpp index c4ec048f25a..e309b42bad3 100644 --- a/mozilla/editor/libeditor/html/nsHTMLCSSUtils.cpp +++ b/mozilla/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/mozilla/editor/libeditor/html/nsHTMLEditor.cpp b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp index 948506c2b1c..c63b5feee47 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp +++ b/mozilla/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/mozilla/editor/libeditor/text/nsTextEditRules.cpp b/mozilla/editor/libeditor/text/nsTextEditRules.cpp index 1d7dc9a173f..08ff80e52f4 100644 --- a/mozilla/editor/libeditor/text/nsTextEditRules.cpp +++ b/mozilla/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/mozilla/embedding/qa/testembed/winEmbedFileLocProvider.cpp b/mozilla/embedding/qa/testembed/winEmbedFileLocProvider.cpp index 1c4e0bac7e0..4b8dc51b55c 100644 --- a/mozilla/embedding/qa/testembed/winEmbedFileLocProvider.cpp +++ b/mozilla/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/mozilla/gfx/src/gtk/nsRenderingContextGTK.cpp b/mozilla/gfx/src/gtk/nsRenderingContextGTK.cpp index 53410e5fea9..5102eb6b078 100644 --- a/mozilla/gfx/src/gtk/nsRenderingContextGTK.cpp +++ b/mozilla/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/mozilla/intl/uconv/idl/nsITextToSubURI.idl b/mozilla/intl/uconv/idl/nsITextToSubURI.idl index 938cc46163f..7baf1db536a 100644 --- a/mozilla/intl/uconv/idl/nsITextToSubURI.idl +++ b/mozilla/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/mozilla/mailnews/mime/src/mimecont.cpp b/mozilla/mailnews/mime/src/mimecont.cpp index 49991f17ae7..107c5c912db 100644 --- a/mozilla/mailnews/mime/src/mimecont.cpp +++ b/mozilla/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/mozilla/mailnews/mime/src/mimeleaf.cpp b/mozilla/mailnews/mime/src/mimeleaf.cpp index 2c8eb230c56..d0e819f6e07 100644 --- a/mozilla/mailnews/mime/src/mimeleaf.cpp +++ b/mozilla/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/mozilla/mailnews/mime/src/mimemult.cpp b/mozilla/mailnews/mime/src/mimemult.cpp index 842eb6fc8d6..3857f3f813b 100644 --- a/mozilla/mailnews/mime/src/mimemult.cpp +++ b/mozilla/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/mozilla/mailnews/mime/src/mimeobj.cpp b/mozilla/mailnews/mime/src/mimeobj.cpp index 8d5ef8ce13c..934ab6c9257 100644 --- a/mozilla/mailnews/mime/src/mimeobj.cpp +++ b/mozilla/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/mozilla/mailnews/mime/src/mimetext.cpp b/mozilla/mailnews/mime/src/mimetext.cpp index b7a9dd3dcb0..0fcc1d9bb45 100644 --- a/mozilla/mailnews/mime/src/mimetext.cpp +++ b/mozilla/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/mozilla/netwerk/protocol/gopher/src/nsGopherChannel.cpp b/mozilla/netwerk/protocol/gopher/src/nsGopherChannel.cpp index 309331cd18c..8b0f3fb39de 100644 --- a/mozilla/netwerk/protocol/gopher/src/nsGopherChannel.cpp +++ b/mozilla/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/mozilla/netwerk/streamconv/src/nsStreamConverterService.cpp b/mozilla/netwerk/streamconv/src/nsStreamConverterService.cpp index d5368e556a7..fbddbd1fa0c 100644 --- a/mozilla/netwerk/streamconv/src/nsStreamConverterService.cpp +++ b/mozilla/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/mozilla/profile/resources/content/profileManager.js b/mozilla/profile/resources/content/profileManager.js index 2abe4187225..8c0779fb8f0 100644 --- a/mozilla/profile/resources/content/profileManager.js +++ b/mozilla/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/mozilla/toolkit/xre/nsINativeAppSupport.idl b/mozilla/toolkit/xre/nsINativeAppSupport.idl index 2400bf62db8..80cad388cd5 100644 --- a/mozilla/toolkit/xre/nsINativeAppSupport.idl +++ b/mozilla/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/mozilla/widget/src/gtk/nsDragService.cpp b/mozilla/widget/src/gtk/nsDragService.cpp index fdceacd3654..78f10eecca4 100644 --- a/mozilla/widget/src/gtk/nsDragService.cpp +++ b/mozilla/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/mozilla/widget/src/gtk2/nsDragService.cpp b/mozilla/widget/src/gtk2/nsDragService.cpp index 824cabc3e03..7a62c32f47e 100644 --- a/mozilla/widget/src/gtk2/nsDragService.cpp +++ b/mozilla/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/mozilla/widget/src/mac/nsMacControl.cpp b/mozilla/widget/src/mac/nsMacControl.cpp index ae6f9f66f11..fd4e281296a 100644 --- a/mozilla/widget/src/mac/nsMacControl.cpp +++ b/mozilla/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/mozilla/xpcom/glue/nsDebug.h b/mozilla/xpcom/glue/nsDebug.h index e9069ed149e..89c81442fc1 100644 --- a/mozilla/xpcom/glue/nsDebug.h +++ b/mozilla/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__)