summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorJonas Kvinge <jonas@jkvinge.net>2021-10-09 19:06:14 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-10-12 07:07:54 +0000
commit9684764bda49b7dee07ff6cd1d919ccee5631153 (patch)
tree17ce55b933c9478b75cc0ff49806fd5c356e4707 /src/xml
parentf11bc388508359b070320866eab4c917cb4c4739 (diff)
xml: Fix typos in source code comments
Pick-to: 6.2 Change-Id: I33aaefec7128009ca5e1b368fdb67e2fbcd06e30 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/dom/qdom.cpp10
-rw-r--r--src/xml/dom/qdom_p.h2
-rw-r--r--src/xml/dom/qdomhelpers.cpp2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp
index 85718cd5e0..724f5b6912 100644
--- a/src/xml/dom/qdom.cpp
+++ b/src/xml/dom/qdom.cpp
@@ -80,7 +80,7 @@ QT_BEGIN_NAMESPACE
/* ##### new TODOs:
- Remove emtpy emthods in the *Private classes
+ Remove empty emthods in the *Private classes
Make a lot of the (mostly empty) methods in the public classes inline.
Specially constructors assignment operators and comparison operators are candidates.
@@ -3016,7 +3016,7 @@ QDomNodePrivate* QDomDocumentTypePrivate::cloneNode(bool deep)
QDomNodePrivate* QDomDocumentTypePrivate::insertBefore(QDomNodePrivate* newChild, QDomNodePrivate* refChild)
{
- // Call the origianl implementation
+ // Call the original implementation
QDomNodePrivate* p = QDomNodePrivate::insertBefore(newChild, refChild);
// Update the maps
if (p && p->isEntity())
@@ -3029,7 +3029,7 @@ QDomNodePrivate* QDomDocumentTypePrivate::insertBefore(QDomNodePrivate* newChild
QDomNodePrivate* QDomDocumentTypePrivate::insertAfter(QDomNodePrivate* newChild, QDomNodePrivate* refChild)
{
- // Call the origianl implementation
+ // Call the original implementation
QDomNodePrivate* p = QDomNodePrivate::insertAfter(newChild, refChild);
// Update the maps
if (p && p->isEntity())
@@ -3042,7 +3042,7 @@ QDomNodePrivate* QDomDocumentTypePrivate::insertAfter(QDomNodePrivate* newChild,
QDomNodePrivate* QDomDocumentTypePrivate::replaceChild(QDomNodePrivate* newChild, QDomNodePrivate* oldChild)
{
- // Call the origianl implementation
+ // Call the original implementation
QDomNodePrivate* p = QDomNodePrivate::replaceChild(newChild, oldChild);
// Update the maps
if (p) {
@@ -3062,7 +3062,7 @@ QDomNodePrivate* QDomDocumentTypePrivate::replaceChild(QDomNodePrivate* newChild
QDomNodePrivate* QDomDocumentTypePrivate::removeChild(QDomNodePrivate* oldChild)
{
- // Call the origianl implementation
+ // Call the original implementation
QDomNodePrivate* p = QDomNodePrivate::removeChild( oldChild);
// Update the maps
if (p && p->isEntity())
diff --git a/src/xml/dom/qdom_p.h b/src/xml/dom/qdom_p.h
index 82c533b141..4979f17b39 100644
--- a/src/xml/dom/qdom_p.h
+++ b/src/xml/dom/qdom_p.h
@@ -62,7 +62,7 @@ QT_BEGIN_NAMESPACE
/**************************************************************
*
- * Private class declerations
+ * Private class declarations
*
**************************************************************/
diff --git a/src/xml/dom/qdomhelpers.cpp b/src/xml/dom/qdomhelpers.cpp
index 75d4c2c2b7..98ba0da845 100644
--- a/src/xml/dom/qdomhelpers.cpp
+++ b/src/xml/dom/qdomhelpers.cpp
@@ -437,7 +437,7 @@ bool QDomParser::parseMarkupDecl()
const auto entities = reader->entityDeclarations();
for (const auto &entityDecl : entities) {
- // Entity declarations are created only for Extrenal Entities. Internal Entities
+ // Entity declarations are created only for External Entities. Internal Entities
// are parsed, and QXmlStreamReader handles the parsing itself and returns the
// parsed result. So we don't need to do anything for the Internal Entities.
if (!entityDecl.publicId().isEmpty() || !entityDecl.systemId().isEmpty()) {