X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fzipper.cc;h=2c334dc947fe62c9f25c06d5b47856c623219e32;hb=b88874e34d429b4624965da09edfde3a56329e38;hp=005e152483a496c250e85b986ddd2acb86d36965;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/lib/zipper.cc b/src/lib/zipper.cc index 005e15248..2c334dc94 100644 --- a/src/lib/zipper.cc +++ b/src/lib/zipper.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2020 Carl Hetherington + Copyright (C) 2020-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,6 +18,7 @@ */ + #include "zipper.h" #include "exceptions.h" #include "dcpomatic_assert.h" @@ -25,6 +26,7 @@ #include #include + using std::string; using std::runtime_error; using std::shared_ptr; @@ -49,7 +51,7 @@ Zipper::add (string name, string content) shared_ptr copy(new string(content)); _store.push_back (copy); - struct zip_source* source = zip_source_buffer (_zip, copy->c_str(), copy->length(), 0); + auto source = zip_source_buffer (_zip, copy->c_str(), copy->length(), 0); if (!source) { throw runtime_error ("could not create ZIP source"); }