Commit 38640527 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

use auto directly

parent 766a54ff
......@@ -128,7 +128,7 @@ QString Utils::akonadiAgentName(const QString &configPath)
KZip *Utils::openZip(const QString &filename, QString &errorMsg)
{
KZip *zip = new KZip(filename);
auto zip = new KZip(filename);
const bool result = zip->open(QIODevice::ReadOnly);
if (!result) {
errorMsg = i18n("Archive cannot be opened in read mode.");
......
Supports Markdown
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