From ea60465d4a5baf3c530c58b216504717a94799cf Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 22 Apr 2019 13:04:56 +0200 Subject: Add lazy argument to CppC4Group's constructor (forgot it first, oops) --- src/cppc4group.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cppc4group.cpp') diff --git a/src/cppc4group.cpp b/src/cppc4group.cpp index 71d9e0d..2355aa6 100644 --- a/src/cppc4group.cpp +++ b/src/cppc4group.cpp @@ -171,9 +171,9 @@ namespace { } } -CppC4Group::CppC4Group() : p{new Private{}} +CppC4Group::CppC4Group(const bool lazy) : p{new Private{}} { - + cc4group.setLazy(p->g, lazy); } CppC4Group::CppC4Group(CppC4Group&& other) : p{std::move(other.p)} @@ -354,7 +354,7 @@ namespace { } }; -std::optional CppC4Group::getEntryInfo(const std::string& path, bool lazy) +std::optional CppC4Group::getEntryInfo(const std::string& path, const bool lazy) { CC4Group_EntryInfo info; if(cc4group.getEntryInfo(p->g, path.c_str(), &info, lazy)) @@ -369,7 +369,7 @@ std::optional CppC4Group::getEntryInfo(const std::string& } } -std::optional> CppC4Group::getEntryInfos(const std::string& path, bool lazy) +std::optional> CppC4Group::getEntryInfos(const std::string& path, const bool lazy) { CC4Group_EntryInfo* infos; size_t infoCount; -- cgit v1.2.3-54-g00ecf