diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-08 21:32:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-08 21:32:44 +0200 |
| commit | 3339d3bce70afe9ae2ca10e9fcfc4b54b748fbf4 (patch) | |
| tree | 9cac355432ba25cc3d43017382d73e0640f50996 /src/lib/zipper.cc | |
| parent | 00762c2d9a4240d016150cd7555aee3dad8542ae (diff) | |
Assorted C++11/formatting cleanups.
Diffstat (limited to 'src/lib/zipper.cc')
| -rw-r--r-- | src/lib/zipper.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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 <cth@carlh.net> + Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net> 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 <boost/filesystem.hpp> #include <stdexcept> + using std::string; using std::runtime_error; using std::shared_ptr; @@ -49,7 +51,7 @@ Zipper::add (string name, string content) shared_ptr<string> 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"); } |
