Refactored utils

This commit is contained in:
Bartek Kryza
2022-01-29 21:17:42 +01:00
parent f539569848
commit 5cc986c9d6
9 changed files with 35 additions and 20 deletions

View File

@@ -82,9 +82,7 @@ int main(int argc, const char *argv[])
for (const auto &[name, diagram] : config.diagrams) {
// If there are any specific diagram names provided on the command line,
// and this diagram is not in that list - skip it
if (!diagram_names.empty() &&
std::find(diagram_names.begin(), diagram_names.end(), name) ==
diagram_names.end())
if (!diagram_names.empty() && !util::contains(diagram_names, name))
continue;
using clanguml::config::class_diagram;