Added namespace to common model instead of vector<string>

This commit is contained in:
Bartek Kryza
2022-02-27 14:20:35 +01:00
parent 57456705bd
commit bee20e7f26
6 changed files with 32 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ package::package(const std::vector<std::string> &using_namespaces)
std::string package::full_name(bool relative) const
{
auto fn = get_namespace();
auto ns = using_namespaces();
auto ns = using_namespace();
if (relative && (fn.size() >= ns.size())) {
if (util::starts_with(fn, ns))