mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Add Group::DEFAULT_NAME
So that the constant is accessible to LOOT at compile time.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user