archive/Plugin: return std::unique_ptr<ArchiveFile>

This commit is contained in:
Max Kellermann
2017-12-27 09:07:21 +01:00
parent 5a728a069e
commit 2e0949d8e6
8 changed files with 16 additions and 20 deletions

View File

@@ -19,11 +19,12 @@
#include "config.h"
#include "ArchivePlugin.hxx"
#include "ArchiveFile.hxx"
#include "fs/Path.hxx"
#include <assert.h>
ArchiveFile *
std::unique_ptr<ArchiveFile>
archive_file_open(const ArchivePlugin *plugin, Path path)
{
assert(plugin != nullptr);