Changeset View
Changeset View
Standalone View
Standalone View
src/kpackage/package.cpp
Show First 20 Lines • Show All 621 Lines • ▼ Show 20 Line(s) | 620 | while (it.hasNext()) { | |||
---|---|---|---|---|---|
622 | 622 | | |||
623 | if (!it.value().endsWith(QLatin1Char('/'))) { | 623 | if (!it.value().endsWith(QLatin1Char('/'))) { | ||
624 | it.setValue(it.value() % QLatin1Char('/')); | 624 | it.setValue(it.value() % QLatin1Char('/')); | ||
625 | } | 625 | } | ||
626 | } | 626 | } | ||
627 | } | 627 | } | ||
628 | } | 628 | } | ||
629 | 629 | | |||
630 | #ifndef PACKAGE_NO_DEPRECATED | 630 | #if KPACKAGE_BUILD_DEPRECATED_SINCE(5, 21) | ||
631 | QString Package::contentsHash() const | 631 | QString Package::contentsHash() const | ||
632 | { | 632 | { | ||
633 | return QString::fromLocal8Bit(cryptographicHash(QCryptographicHash::Sha1)); | 633 | return QString::fromLocal8Bit(cryptographicHash(QCryptographicHash::Sha1)); | ||
634 | } | 634 | } | ||
635 | #endif | 635 | #endif | ||
636 | 636 | | |||
637 | QByteArray Package::cryptographicHash(QCryptographicHash::Algorithm algorithm) const | 637 | QByteArray Package::cryptographicHash(QCryptographicHash::Algorithm algorithm) const | ||
638 | { | 638 | { | ||
▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines |