Commit 446ca91e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use default constructor

parent a46e0892
......@@ -385,7 +385,7 @@ void IncidenceDialogPrivate::saveTemplate(const QString &templateName)
QString fileName = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
QStringLiteral("korganizer/templates/") + typeToString(mEditor->type()) + QLatin1Char('/');
QDir::root().mkpath(fileName);
QDir().mkpath(fileName);
fileName += templateName;
KCalCore::ICalFormat format;
......@@ -401,7 +401,7 @@ void IncidenceDialogPrivate::storeTemplatesInConfig(const QStringList &templateN
const QString defaultPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
QStringLiteral("korganizer/templates/") +
typeToString(mEditor->type()) + QLatin1Char('/');
QDir::root().mkpath(defaultPath);
QDir().mkpath(defaultPath);
for (const QString &tmpl : origTemplates) {
if (!templateNames.contains(tmpl)) {
const QString fileName = defaultPath + tmpl;
......
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