diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-04-21 00:55:10 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-04-21 00:55:10 +0200 |
| commit | 85a1c875782b3ac10020a64a937d660b2b46d3b0 (patch) | |
| tree | d950ea9a976d4a67bd50ae7fbb1744e14988aaf5 | |
| parent | 20f8542d2730654ba7140dc59240c8d477476e77 (diff) | |
| download | cc4group-85a1c875782b3ac10020a64a937d660b2b46d3b0.tar.gz cc4group-85a1c875782b3ac10020a64a937d660b2b46d3b0.zip | |
Make CppC4Group::isChild const
| -rw-r--r-- | src/cppc4group.cpp | 2 | ||||
| -rw-r--r-- | src/cppc4group.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cppc4group.cpp b/src/cppc4group.cpp index 35b589a..d2a2245 100644 --- a/src/cppc4group.cpp +++ b/src/cppc4group.cpp @@ -488,7 +488,7 @@ std::optional<CppC4Group> CppC4Group::openAsChild(const std::string& path) } } -bool CppC4Group::isChild() +bool CppC4Group::isChild() const { return cc4group.isChild(p->g); } diff --git a/src/cppc4group.hpp b/src/cppc4group.hpp index 639fbf4..d80ffdf 100644 --- a/src/cppc4group.hpp +++ b/src/cppc4group.hpp @@ -193,7 +193,7 @@ public: // to get the child group out of the optional in case of success, construct a new CppC4Group with the move constructor: CppC4Group child{std::move(*optionalChild)}; std::optional<CppC4Group> openAsChild(const std::string& path); - bool isChild(); + bool isChild() const; std::string getName() const; std::string getFullName() const; |
