mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
Add helper lib for strings and vectors
This commit is contained in:
parent
6ef9740db9
commit
2bb7fcfcc6
10 changed files with 168 additions and 123 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "Mirai.h"
|
||||
#include "TaskItem.h"
|
||||
#include <algorithm>
|
||||
#include "cpp-utils/vector.h"
|
||||
|
||||
namespace mirai {
|
||||
|
||||
|
@ -16,7 +16,7 @@ namespace mirai {
|
|||
tags.clear();
|
||||
for (auto& task : (*files)[0].getTasks()) {
|
||||
for (auto& tag : task->getTags()) {
|
||||
if (std::find(tags.begin(), tags.end(), tag) == tags.end()) {
|
||||
if (vectorUtils::contains(tags, tag)) {
|
||||
tags.push_back(tag);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue