diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-01-21 18:51:41 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-01-21 18:51:41 -0500 |
commit | e02e3d57dc090c8fd333812b84e91805921e398c (patch) | |
tree | cd88280d698a920ca11419309bd743ddd9fc1b32 /generator/group.cpp | |
parent | 104587ba8f0ce51e0dfbc2916aee97ce3f8c3a8a (diff) | |
download | verbly-e02e3d57dc090c8fd333812b84e91805921e398c.tar.gz verbly-e02e3d57dc090c8fd333812b84e91805921e398c.tar.bz2 verbly-e02e3d57dc090c8fd333812b84e91805921e398c.zip |
Moved some generator classes into the main namespace
Diffstat (limited to 'generator/group.cpp')
-rw-r--r-- | generator/group.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generator/group.cpp b/generator/group.cpp index 7cbd4c8..334c2aa 100644 --- a/generator/group.cpp +++ b/generator/group.cpp | |||
@@ -23,10 +23,11 @@ namespace verbly { | |||
23 | parent_ = &parent; | 23 | parent_ = &parent; |
24 | } | 24 | } |
25 | 25 | ||
26 | void group::addRole(std::string name, role r) | 26 | void group::addRole(role r) |
27 | { | 27 | { |
28 | roleNames_.insert(name); | 28 | std::string name = r.getName(); |
29 | roles_[name] = std::move(r); | 29 | roles_[name] = std::move(r); |
30 | roleNames_.insert(std::move(name)); | ||
30 | } | 31 | } |
31 | 32 | ||
32 | void group::addFrame(const frame& f) | 33 | void group::addFrame(const frame& f) |