Commit d502df5c authored by Laurent Montel's avatar Laurent Montel 😁

Use const'ref

parent ad189f37
......@@ -990,7 +990,7 @@ void ImportMailJob::importFolderArchiveConfig(const KArchiveFile *archiveconfigu
archiveConfig->sync();
}
void ImportMailJob::copyArchiveMailAgentConfigGroup(KSharedConfig::Ptr archiveConfigOrigin, KSharedConfig::Ptr archiveConfigDestination)
void ImportMailJob::copyArchiveMailAgentConfigGroup(const KSharedConfig::Ptr &archiveConfigOrigin, const KSharedConfig::Ptr &archiveConfigDestination)
{
//adapt id
const QString archiveGroupPattern = QStringLiteral("ArchiveMailCollection ");
......
......@@ -58,7 +58,7 @@ private:
void mergeLdapConfig(const KArchiveFile *archivefile, const QString &filename, const QString &prefix);
void mergeKmailSnippetConfig(const KArchiveFile *archivefile, const QString &filename, const QString &prefix);
void mergeArchiveMailAgentConfig(const KArchiveFile *archivefile, const QString &filename, const QString &prefix);
void copyArchiveMailAgentConfigGroup(KSharedConfig::Ptr archiveConfigOrigin, KSharedConfig::Ptr archiveConfigDestination);
void copyArchiveMailAgentConfigGroup(const KSharedConfig::Ptr &archiveConfigOrigin, const KSharedConfig::Ptr &archiveConfigDestination);
void mergeSieveTemplate(const KArchiveFile *archivefile, const QString &filename, const QString &prefix);
void importSimpleFilesInDirectory(const QString &relativePath);
QString uniqueIdentityName(const QString &name);
......
......@@ -114,7 +114,7 @@ QString Utils::infoPath()
return QStringLiteral("information/");
}
QString Utils::adaptResourcePath(KSharedConfigPtr resourceConfig, const QString &storedData)
QString Utils::adaptResourcePath(const KSharedConfigPtr &resourceConfig, const QString &storedData)
{
QString newUrl = Utils::resourcePath(resourceConfig);
if (!newUrl.contains(QDir::homePath())) {
......
......@@ -102,7 +102,7 @@ void convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey)
void convertCollectionIdsToRealPath(KConfigGroup &group, const QString &currentKey);
QString resourcePath(const Akonadi::AgentInstance &agent, const QString &defaultPath = QString());
QString adaptResourcePath(KSharedConfigPtr resourceConfig, const QString &storedData);
QString adaptResourcePath(const KSharedConfigPtr &resourceConfig, const QString &storedData);
QString storeResources(KZip *archive, const QString &identifier, const QString &path);
KZip *openZip(const QString &filename, QString &errorMsg);
void storeDataExportInfo(const QString &filename, KZip *archive);
......
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