code cleanup

This commit is contained in:
Martin Brodbeck 2018-07-09 16:07:04 +02:00
parent 8f3dda3520
commit 96113653e7
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -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{};