Applied ppcoreguidelines-init-variables nullptr access warnings

This commit is contained in:
Bartek Kryza
2022-12-24 18:40:26 +01:00
parent 354bfcf67c
commit 0afd64668c
2 changed files with 2 additions and 3 deletions

View File

@@ -277,7 +277,7 @@ void generator::generate_relationships(
plantuml_common::to_plantuml(r.type(), r.style()));
std::stringstream relstr;
clanguml::common::id_t destination;
clanguml::common::id_t destination{0};
try {
destination = r.destination();
@@ -381,7 +381,7 @@ void generator::generate_relationships(const enum_ &e, std::ostream &ostr) const
if (!m_model.should_include(r.type()))
continue;
clanguml::common::id_t destination;
clanguml::common::id_t destination{0};
std::stringstream relstr;
try {
destination = r.destination();