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();
|
uuid = generator();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entity::createUuidFromString(const std::string& uuid_string)
|
void Entity::createUuidFromString(const std::string& uuidString)
|
||||||
{
|
{
|
||||||
boost::uuids::string_generator generator{};
|
boost::uuids::string_generator generator{};
|
||||||
uuid = generator(uuid_string);
|
uuid = generator(uuidString);
|
||||||
}
|
}
|
|
@ -10,9 +10,9 @@ class Entity
|
||||||
public:
|
public:
|
||||||
Entity();
|
Entity();
|
||||||
virtual ~Entity() = 0;
|
virtual ~Entity() = 0;
|
||||||
const boost::uuids::uuid& getUuid() { return uuid; };
|
const boost::uuids::uuid& getUuid() const { return uuid; };
|
||||||
void createUuid();
|
void createUuid();
|
||||||
void createUuidFromString(const std::string& uuid_string);
|
void createUuidFromString(const std::string& uuidString);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::uuids::uuid uuid{};
|
boost::uuids::uuid uuid{};
|
||||||
|
|
Loading…
Reference in a new issue