diff --git a/autotests/timelinemodeltest.cpp b/autotests/timelinemodeltest.cpp --- a/autotests/timelinemodeltest.cpp +++ b/autotests/timelinemodeltest.cpp @@ -367,7 +367,7 @@ resMgr.removeReservation(resId); QCOMPARE(model.rowCount(), 11); - // test case: two conesequtive location changes, the first one to an unknown location + // test case: two consecutive location changes, the first one to an unknown location // result: the weather element before the first location change ends with the start of that // result 2: we get a second weather element the same day after the second location change // TODO diff --git a/src/app/TimelineDelegate.qml b/src/app/TimelineDelegate.qml --- a/src/app/TimelineDelegate.qml +++ b/src/app/TimelineDelegate.qml @@ -29,7 +29,7 @@ /** All reservations that are part of this patch. */ property var resIds: _reservationManager.reservationsForBatch(root.batchId) /** A random reservation object, in case there's more than one. - * Use this only for accessing properties that will be the same for all travlers. + * Use this only for accessing properties that will be the same for all travelers. */ readonly property var reservation: _reservationManager.reservation(root.batchId); /** Reservation::reservationFor, unique for all travelers on a multi-traveler reservation set */ diff --git a/src/app/reservationmanager.cpp b/src/app/reservationmanager.cpp --- a/src/app/reservationmanager.cpp +++ b/src/app/reservationmanager.cpp @@ -185,7 +185,7 @@ } } - // truely new, and added to an existing batch + // truly new, and added to an existing batch const QString resId = QUuid::createUuid().toString(); storeReservation(resId, res); emit reservationAdded(resId); @@ -198,7 +198,7 @@ } } - // truely new, and starting a new batch + // truly new, and starting a new batch const QString resId = QUuid::createUuid().toString(); storeReservation(resId, res); emit reservationAdded(resId); diff --git a/src/app/tripgroupmanager.cpp b/src/app/tripgroupmanager.cpp --- a/src/app/tripgroupmanager.cpp +++ b/src/app/tripgroupmanager.cpp @@ -272,7 +272,7 @@ break; } - // check for connected transitions (ie. previsous arrival == current departure) + // check for connected transitions (ie. previous arrival == current departure) const auto prevArrival = LocationUtil::arrivalLocation(prevRes); const auto curDeparture = LocationUtil::departureLocation(res); const auto connectedTransition = LocationUtil::isSameLocation(prevArrival, curDeparture, LocationUtil::CityLevel); diff --git a/src/publictransport/backends/abstractbackend.h b/src/publictransport/backends/abstractbackend.h --- a/src/publictransport/backends/abstractbackend.h +++ b/src/publictransport/backends/abstractbackend.h @@ -39,7 +39,7 @@ AbstractBackend(); virtual ~AbstractBackend(); - /** Identifer for this backend. + /** Identifier for this backend. * Use e.g. for distinguishing backend-specific cache locations etc. */ QString backendId() const; diff --git a/src/publictransport/backends/navitiaparser.cpp b/src/publictransport/backends/navitiaparser.cpp --- a/src/publictransport/backends/navitiaparser.cpp +++ b/src/publictransport/backends/navitiaparser.cpp @@ -42,7 +42,7 @@ struct { const char *name; Line::Mode mode; -} static const navitia_phyiscal_modes[] = { +} static const navitia_physical_modes[] = { { "Air", Line::Air }, { "Boat", Line::Boat }, { "Bus", Line::Bus }, @@ -67,7 +67,7 @@ if (!modeStr.startsWith("physical_mode:")) { return Line::Unknown; } - for (auto it = std::begin(navitia_phyiscal_modes); it != std::end(navitia_phyiscal_modes); ++it) { + for (auto it = std::begin(navitia_physical_modes); it != std::end(navitia_physical_modes); ++it) { if (strcmp(modeStr.constData() + 14, it->name) == 0) { return it->mode; } diff --git a/src/publictransport/manager.cpp b/src/publictransport/manager.cpp --- a/src/publictransport/manager.cpp +++ b/src/publictransport/manager.cpp @@ -174,7 +174,7 @@ int pendingOps = 0; for (const auto &backend : d->m_backends) { if (backend->isLocationExcluded(req.from()) && backend->isLocationExcluded(req.to())) { - qCDebug(Log) << "Skiping backend based on location filter:" << backend->backendId(); + qCDebug(Log) << "Skipping backend based on location filter:" << backend->backendId(); continue; } if (!backend->isSecure() && !d->m_allowInsecure) { @@ -195,7 +195,7 @@ int pendingOps = 0; for (const auto &backend : d->m_backends) { if (backend->isLocationExcluded(req.stop())) { - qCDebug(Log) << "Skiping backend based on location filter:" << backend->backendId(); + qCDebug(Log) << "Skipping backend based on location filter:" << backend->backendId(); continue; } if (!backend->isSecure() && !d->m_allowInsecure) { @@ -216,7 +216,7 @@ int pendingOps = 0; for (const auto &backend : d->m_backends) { if (req.hasCoordinate() && backend->isCoordinateExcluded(req.latitude(), req.longitude())) { - qCDebug(Log) << "Skiping backend based on location filter:" << backend->backendId(); + qCDebug(Log) << "Skipping backend based on location filter:" << backend->backendId(); continue; } if (!backend->isSecure() && !d->m_allowInsecure) {