Minor refactoring variable names

This commit is contained in:
Bartek Kryza
2021-10-03 18:40:17 +02:00
parent 7615d465f0
commit e3fdebdba9
3 changed files with 20 additions and 18 deletions

View File

@@ -43,9 +43,9 @@ std::string method_parameter::to_string(
using namespace clanguml::util;
auto t = ns_relative(using_namespaces, type());
if (default_value().empty())
return t + " " + name();
return fmt::format("{} {}", t, name());
return t + " " + name() + " = " + default_value();
return fmt::format("{} {} = {}", t, name(), default_value());
}
}