code cleanup
This commit is contained in:
parent
8f3dda3520
commit
96113653e7
2 changed files with 4 additions and 4 deletions
|
@ -13,8 +13,8 @@ void Entity::createUuid()
|
|||
uuid = generator();
|
||||
}
|
||||
|
||||
void Entity::createUuidFromString(const std::string& uuid_string)
|
||||
void Entity::createUuidFromString(const std::string& uuidString)
|
||||
{
|
||||
boost::uuids::string_generator generator{};
|
||||
uuid = generator(uuid_string);
|
||||
uuid = generator(uuidString);
|
||||
}
|
|
@ -10,9 +10,9 @@ class Entity
|
|||
public:
|
||||
Entity();
|
||||
virtual ~Entity() = 0;
|
||||
const boost::uuids::uuid& getUuid() { return uuid; };
|
||||
const boost::uuids::uuid& getUuid() const { return uuid; };
|
||||
void createUuid();
|
||||
void createUuidFromString(const std::string& uuid_string);
|
||||
void createUuidFromString(const std::string& uuidString);
|
||||
|
||||
private:
|
||||
boost::uuids::uuid uuid{};
|
||||
|
|
Loading…
Reference in a new issue