Applied ppcoreguidelines-init-variables nullptr access warnings
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -29,7 +29,6 @@ translation_unit_visitor::translation_unit_visitor(clang::SourceManager &sm,
|
||||
: common::visitor::translation_unit_visitor{sm, config}
|
||||
, diagram_{diagram}
|
||||
, config_{config}
|
||||
, call_expression_context_{}
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user