Commit 28156bb3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify

parent 78be8f27
......@@ -62,10 +62,10 @@ void ExportNotesJobInterfaceImpl::slotWriteNextArchiveResource()
const QString archivePath = Utils::notePath() + identifier + QLatin1Char('/');
ResourceConverterImpl converter;
QString url = converter.resourcePath(identifier);
const QString url = converter.resourcePath(identifier);
if (!mAgentPaths.contains(url) && QDir(url).exists()) {
mAgentPaths << url;
if (!url.isEmpty()) {
mAgentPaths << url;
ExportResourceArchiveJob *resourceJob = new ExportResourceArchiveJob(this);
resourceJob->setArchivePath(archivePath);
resourceJob->setUrl(url);
......
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