diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2019-04-22 13:04:56 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2019-04-22 13:04:56 +0200 |
| commit | ea60465d4a5baf3c530c58b216504717a94799cf (patch) | |
| tree | 58643b0e09406acd9a4585a48dc27b2e0415aa0e /src/cppc4group.hpp | |
| parent | 41eabf6ac74a7c0e81912742764ebea3d0e1fe07 (diff) | |
| download | cc4group-ea60465d4a5baf3c530c58b216504717a94799cf.tar.gz cc4group-ea60465d4a5baf3c530c58b216504717a94799cf.zip | |
Add lazy argument to CppC4Group's constructor (forgot it first, oops)
Diffstat (limited to 'src/cppc4group.hpp')
| -rw-r--r-- | src/cppc4group.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cppc4group.hpp b/src/cppc4group.hpp index e69f9c2..420893c 100644 --- a/src/cppc4group.hpp +++ b/src/cppc4group.hpp @@ -126,7 +126,7 @@ public: public: // the constructor will automatically construct an internal CC4Group, so no new-equivalent method is needed // may throw std::bad_alloc if the allocation and construction of the internal CC4Group object fails - CppC4Group(); + CppC4Group(const bool lazy = true); // the move constructor is needed to move the returned group out of the optional from openAsChild CppC4Group(CppC4Group&& other); @@ -161,8 +161,8 @@ public: bool setOfficial(const bool official, const std::string& path = "", const bool recursive = false); bool setExecutable(const bool executable, const std::string& path); - std::optional<EntryInfo> getEntryInfo(const std::string& path = "", bool lazy = false); - std::optional<std::vector<EntryInfo>> getEntryInfos(const std::string& path = "", bool lazy = false); + std::optional<EntryInfo> getEntryInfo(const std::string& path = "", const bool lazy = false); + std::optional<std::vector<EntryInfo>> getEntryInfos(const std::string& path = "", const bool lazy = false); bool deleteEntry(const std::string& path, const bool recursive = false); bool renameEntry(const std::string& oldPath, const std::string& newPath); |
