fixed event handling and a lot of ID stuff OOPS

This commit is contained in:
shweet committed 2026-01-13 03:16:38 -05:00
1 parent f9087b8ed3
commit 7f4e05a927
13 files changed
+78 -17

No files matched your search

+8 -3
View File
@@ -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());
}
}
}