[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kitinerary] src: Fix minor EBN issues
From:       Yuri Chornoivan <null () kde ! org>
Date:       2018-09-13 18:08:06
Message-ID: E1g0W2A-0003Gy-FU () code ! kde ! org
[Download RAW message or body]

Git commit 48edcba0a6ef817fb44632ab3c47c14871223985 by Yuri Chornoivan.
Committed on 13/09/2018 at 18:07.
Pushed by yurchor into branch 'master'.

Fix minor EBN issues

M  +1    -1    src/extractorpostprocessor.h
M  +1    -1    src/htmldocument.h
M  +1    -1    src/knowledgedb-generator/airportdbgenerator.cpp
M  +1    -1    src/knowledgedb/airportdb_data.cpp
M  +1    -1    src/pdfdocument.cpp
M  +1    -1    src/structureddataextractor.cpp

https://commits.kde.org/kitinerary/48edcba0a6ef817fb44632ab3c47c14871223985

diff --git a/src/extractorpostprocessor.h b/src/extractorpostprocessor.h
index 7e62318..d9be5ca 100644
--- a/src/extractorpostprocessor.h
+++ b/src/extractorpostprocessor.h
@@ -66,7 +66,7 @@ class ExtractorPostprocessorPrivate;
  *  @section postproc_sort Sorting
  *
  *  Finally the remaining elements are sorted based on their relevant date (see \
                SortUtil). This
- *  makes the data usable for basic display right away, but it for example doesn't \
do multi-traveller + *  makes the data usable for basic display right away, but it \
                for example doesn't do multi-traveler
  *  aggregation, that's still left for the display layer.
  */
 class KITINERARY_EXPORT ExtractorPostprocessor
diff --git a/src/htmldocument.h b/src/htmldocument.h
index 006cccd..477e5fa 100644
--- a/src/htmldocument.h
+++ b/src/htmldocument.h
@@ -65,7 +65,7 @@ public:
     QString content() const;
     /** Returns the content of this element and all its children. */
     QString recursiveContent() const;
-    /** Checks wether an attribute with name @p attr exists. */
+    /** Checks whether an attribute with name @p attr exists. */
     bool hasAttribute(const QString &attr) const;
     /** Returns the list of all attributes of this node. */
     QStringList attributes() const;
diff --git a/src/knowledgedb-generator/airportdbgenerator.cpp \
b/src/knowledgedb-generator/airportdbgenerator.cpp index 4b1de84..0d00b21 100644
--- a/src/knowledgedb-generator/airportdbgenerator.cpp
+++ b/src/knowledgedb-generator/airportdbgenerator.cpp
@@ -276,7 +276,7 @@ namespace KItinerary {
 namespace KnowledgeDb {
 
 // airport data sorted by IATA code
-// the corresponding index is used to acces data the following tables
+// the corresponding index is used to access data the following tables
 static constexpr Airport airport_table[] = {
 )");
 
diff --git a/src/knowledgedb/airportdb_data.cpp b/src/knowledgedb/airportdb_data.cpp
index 0b44849..916bda8 100644
--- a/src/knowledgedb/airportdb_data.cpp
+++ b/src/knowledgedb/airportdb_data.cpp
@@ -17,7 +17,7 @@ namespace KItinerary {
 namespace KnowledgeDb {
 
 // airport data sorted by IATA code
-// the corresponding index is used to acces data the following tables
+// the corresponding index is used to access data the following tables
 static constexpr Airport airport_table[] = {
     Airport{IataCode{"AAA"}, CountryId{"FR"}, Tz::Pacific_Tahiti}, // Anaa Airport
     Airport{IataCode{"AAB"}, CountryId{"AU"}, Tz::Australia_Brisbane}, // Arrabury \
                Airport
diff --git a/src/pdfdocument.cpp b/src/pdfdocument.cpp
index dbc2d76..c5ea039 100644
--- a/src/pdfdocument.cpp
+++ b/src/pdfdocument.cpp
@@ -178,7 +178,7 @@ void ExtractorOutputDevice::drawImage(GfxState* state, Object* \
ref, Stream* str,  return;
     }
 
-    // check for duplicate occurances of ref->getRef().num
+    // check for duplicate occurancies of ref->getRef().num
     if (ref->isRef()) {
         auto it = std::find_if(d->m_images.begin(), d->m_images.end(), [ref](const \
PdfImage &other) {  return other.d->m_refNum == ref->getRef().num;
diff --git a/src/structureddataextractor.cpp b/src/structureddataextractor.cpp
index a21f094..7269efd 100644
--- a/src/structureddataextractor.cpp
+++ b/src/structureddataextractor.cpp
@@ -131,7 +131,7 @@ static void extractRecursive(HtmlElement elem, QJsonArray \
&result)  
         const auto itemProp = elem.attribute(QLatin1String("itemprop"));
         if (!itemProp.isEmpty() && !result.isEmpty()) {
-            // this is likely a child of our preceeding sibling, but broken XML put \
it here +            // this is likely a child of our preceding sibling, but broken \
XML put it here  auto parent = result.last().toObject();
             parent.insert(itemProp, obj);
             result[result.size() - 1] = parent;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic