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

@@ -18,7 +18,6 @@
#pragma once
#include "decorated_element.h"
#include "enums.h"
#include <string>

View File

@@ -18,7 +18,6 @@
#pragma once
#include "class_element.h"
#include "enums.h"
#include <string>

View File

@@ -18,7 +18,6 @@
#pragma once
#include "class_element.h"
#include "enums.h"
#include "method_parameter.h"
#include <string>

View File

@@ -18,7 +18,6 @@
#pragma once
#include "decorated_element.h"
#include "enums.h"
#include "stylable_element.h"
#include <string>

View File

@@ -19,7 +19,6 @@
#include "class_relationship.h"
#include "decorated_element.h"
#include "enums.h"
#include <atomic>
#include <string>

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();
}
}

View File

@@ -18,7 +18,6 @@
#pragma once
#include "decorated_element.h"
#include "enums.h"
#include <string>
#include <vector>