Fixed clang-tidy warnings
This commit is contained in:
@@ -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 == ':') {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user