summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2020-04-21 00:55:10 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2020-04-21 00:55:10 +0200
commit85a1c875782b3ac10020a64a937d660b2b46d3b0 (patch)
treed950ea9a976d4a67bd50ae7fbb1744e14988aaf5
parent20f8542d2730654ba7140dc59240c8d477476e77 (diff)
downloadcc4group-85a1c875782b3ac10020a64a937d660b2b46d3b0.tar.gz
cc4group-85a1c875782b3ac10020a64a937d660b2b46d3b0.zip
Make CppC4Group::isChild const
-rw-r--r--src/cppc4group.cpp2
-rw-r--r--src/cppc4group.hpp2
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;