Bug 106386 Correct misspellings in source code

patch by ajvincent@gmail.com r=timeless rs=brendan a=chofmann
This commit is contained in:
timeless%mozdev.org 2005-06-03 10:26:28 +00:00
Родитель fb6bd743c0
Коммит 3fc95f8e53
21 изменённых файлов: 36 добавлений и 36 удалений

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

@ -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;
}

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

@ -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;

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

@ -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;
}

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

@ -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;

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

@ -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

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

@ -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.

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

@ -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...

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

@ -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);
};

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

@ -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 <rhp@netscape.com> 19 Mar 1999 12:00");
return ((MimeObjectClass*)&MIME_SUPERCLASS)->initialize(object);

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

@ -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 <rhp@netscape.com> 19 Mar 1999 12:00");
return ((MimeObjectClass*)&MIME_SUPERCLASS)->initialize(obj);

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

@ -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);

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

@ -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. */

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

@ -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;

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

@ -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"

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

@ -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=");

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

@ -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";

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

@ -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.

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

@ -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));

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

@ -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 =

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

@ -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]);
}
}

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

@ -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__)