mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-05 10:59:47 -05:00
Add the ability to remove Tags
This commit is contained in:
@@ -282,4 +282,11 @@ void PropertyOwner::addTag(std::string tag) {
|
||||
_tags.push_back(std::move(tag));
|
||||
}
|
||||
|
||||
void PropertyOwner::removeTag(const std::string& tag) {
|
||||
_tags.erase(
|
||||
std::remove(_tags.begin(), _tags.end(), tag),
|
||||
_tags.end()
|
||||
);
|
||||
}
|
||||
|
||||
} // namespace openspace::properties
|
||||
|
||||
Reference in New Issue
Block a user