Fixed calculation precedence warning introduced in recent commit

This commit is contained in:
PKEuS 2018-05-14 15:24:09 +02:00
parent 4c8bb9ac6f
commit c4b6beac4d
1 changed files with 4 additions and 2 deletions

View File

@ -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;