diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 840c87139..3fffcf299 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -2886,9 +2886,11 @@ void SymbolDatabase::printOut(const char *title) const else std::cout << " Unknown"; - std::cout << " " << type->friendList[i].nameEnd ? type->friendList[i].nameEnd->str() : emptyString; + std::cout << ' '; + if (type->friendList[i].nameEnd) + std::cout << type->friendList[i].nameEnd->str(); if (i+1 < type->friendList.size()) - std::cout << ","; + std::cout << ','; } std::cout << " )" << std::endl;