Fixing compilation 'Killed signal terminated program cc1plus' error

This commit is contained in:
Bartek Kryza
2021-10-03 15:20:08 +02:00
parent 08bf8cc5fa
commit e5d7362a16
7 changed files with 2 additions and 10 deletions

View File

@@ -20,8 +20,6 @@
#include "util/util.h"
#include <spdlog/spdlog.h>
namespace clanguml::class_diagram::model {
void method_parameter::set_type(const std::string &type) { type_ = type; }
@@ -45,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 fmt::format("{} {}", t, name());
return t + " " + name();
return fmt::format("{} {} = {}", t, name(), default_value());
return t + " " + name() + " = " + default_value();
}
}