Add Group::DEFAULT_NAME

So that the constant is accessible to LOOT at compile time.
This commit is contained in:
Oliver Hamlet
2022-02-18 23:01:42 +00:00
parent e24576d8a8
commit b97424435f
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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.
+1 -1
View File
@@ -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<std::string>& afterGroups,