diff --git a/include/loot/metadata/group.h b/include/loot/metadata/group.h index 86c92158..40a76c49 100644 --- a/include/loot/metadata/group.h +++ b/include/loot/metadata/group.h @@ -35,6 +35,11 @@ namespace loot { */ class Group { public: + /** + * The name of the group to which all plugins belong by default. + */ + static constexpr const char* DEFAULT_NAME = "default"; + /** * Construct a Group with the name "default" and an empty set of groups to * load after. diff --git a/src/api/metadata/group.cpp b/src/api/metadata/group.cpp index a9daca98..a3b5f62d 100644 --- a/src/api/metadata/group.cpp +++ b/src/api/metadata/group.cpp @@ -27,7 +27,7 @@ #include "api/metadata/yaml/group.h" namespace loot { -Group::Group() : name_("default") {} +Group::Group() : name_(Group::DEFAULT_NAME) {} Group::Group(const std::string& name, const std::vector& afterGroups,