From 85a1c875782b3ac10020a64a937d660b2b46d3b0 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 21 Apr 2020 00:55:10 +0200 Subject: Make CppC4Group::isChild const --- src/cppc4group.cpp | 2 +- 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::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 openAsChild(const std::string& path); - bool isChild(); + bool isChild() const; std::string getName() const; std::string getFullName() const; -- cgit v1.2.3-54-g00ecf