Fixed clang-tidy warnings

This commit is contained in:
Bartek Kryza
2023-01-17 00:14:43 +01:00
parent 57740c0c6c
commit f3ef592f01
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ decorator_toks decorator::tokenize(const std::string &label, std::string_view c)
decorator_toks res;
res.label = label;
size_t pos{};
auto it = c.begin();
const auto *it = c.begin();
std::advance(it, label.size());
if (*it == ':') {

View File

@@ -327,8 +327,8 @@ std::string path_to_url(const std::filesystem::path &p)
if (p.has_root_directory())
return fmt::format("/{}", fmt::join(path_tokens, "/"));
else
return fmt::format("{}", fmt::join(path_tokens, "/"));
return fmt::format("{}", fmt::join(path_tokens, "/"));
}
} // namespace clanguml::util