Skip to content
Snippets Groups Projects
Commit f5271a75 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

HierarchyModifyingGroup::getPathName() now returns "." for unqualified names (i.e. no slashes)

This function is indented for direct use when creating a HierarchyModifyingGroup, where this behaviour makes more sense. A "." as name of a HierarchyModifyingGroup will be the equivalent to HierarchyModifyer::hideThis.
parent e1169983
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ namespace ChimeraTK {
std::string HierarchyModifyingGroup::getPathName(const std::string& qualifiedName) {
auto found = qualifiedName.find_last_of("/");
if(found == std::string::npos) return "";
if(found == std::string::npos) return ".";
return qualifiedName.substr(0, found);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment