Commit 848dceb3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify

parent e1fe4151
......@@ -46,7 +46,6 @@ AbstractImportExportJob::AbstractImportExportJob(QObject *parent, ArchiveStorage
, mArchiveStorage(archiveStorage)
, mIdentityManager(KIdentityManagement::IdentityManager::self())
, mNumberOfStep(numberOfStep)
, mIndex(-1)
, mImportExportProgressIndicator(new ImportExportProgressIndicatorBase(this))
{
mImportExportProgressIndicator->setNumberOfStep(numberOfStep);
......
......@@ -95,13 +95,13 @@ protected:
Q_REQUIRED_RESULT QStringList restoreResourceFile(const QString &resourceName, const QString &defaultPath, const QString &storePath, bool overwriteResources = false);
virtual void addSpecificResourceSettings(const KSharedConfig::Ptr &resourceConfig, const QString &resourceName, QMap<QString, QVariant> &settings);
void restoreConfigFile(const QString &configNameStr);
bool overwriteDirectoryMessageBox(const QString &directory) const;
Q_REQUIRED_RESULT bool overwriteDirectoryMessageBox(const QString &directory) const;
void overwriteDirectory(const QString &path, const KArchiveEntry *entry);
virtual bool isAConfigFile(const QString &name) const;
void searchAllFiles(const KArchiveDirectory *dir, const QString &prefix, const QString &searchEntryName);
void storeArchiveInfoResources(const KArchiveDirectory *dir, const QString &prefix);
KZip *archive() const;
Q_REQUIRED_RESULT KZip *archive() const;
void increaseProgressDialog();
void createProgressDialog(const QString &title = QString());
......
......@@ -93,7 +93,7 @@ void ExportAddressbookJob::slotWriteNextArchiveResource()
if (identifier.contains(QLatin1String("akonadi_vcarddir_resource_")) || identifier.contains(QLatin1String("akonadi_contacts_resource_"))) {
const QString archivePath = Utils::addressbookPath() + identifier + QLatin1Char('/');
QString url = Utils::resourcePath(agent, QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/contacts/"));
const QString url = Utils::resourcePath(agent, QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/contacts/"));
if (!mAgentPaths.contains(url)) {
mAgentPaths << url;
if (!url.isEmpty()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment