fixed event handling and a lot of ID stuff OOPS
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
#include "storage.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
namespace anm2ed
|
||||
{
|
||||
void Storage::clear() { *this = Storage(); }
|
||||
|
||||
void Storage::labels_set(std::vector<std::string> labels)
|
||||
void Storage::labels_set(std::vector<std::string> labels) { labels_set(std::move(labels), {}); }
|
||||
|
||||
void Storage::labels_set(std::vector<std::string> labels, std::vector<int> ids)
|
||||
{
|
||||
labelsString = labels;
|
||||
labelsString = std::move(labels);
|
||||
this->ids = std::move(ids);
|
||||
this->labels.clear();
|
||||
for (auto& label : labelsString)
|
||||
this->labels.emplace_back(label.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user