From f65ce9a2b117edef31395f4a3d6ebf90bc663b39 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Fri, 1 Jun 2018 15:12:26 +0200 Subject: [PATCH] Improve docs and initialization of containers --- src/core/appdir.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/core/appdir.cpp b/src/core/appdir.cpp index c64e183..5271f7c 100644 --- a/src/core/appdir.cpp +++ b/src/core/appdir.cpp @@ -1,3 +1,8 @@ +// system headers +#include +#include +#include + // library headers #include #include @@ -24,13 +29,14 @@ namespace linuxdeploy { class AppDir::PrivateData { public: bf::path appDirPath; + + // store deferred operations + // these can be executed by calling excuteDeferredOperations std::map copyOperations; std::map setElfRPathOperations; public: - PrivateData() { - this->copyOperations = {}; - }; + PrivateData() : copyOperations(), setElfRPathOperations() {}; public: // actually copy file