Fixed false positive unusedPrivateFunction caused by recent commit

This commit is contained in:
PKEuS 2018-05-14 16:20:46 +02:00
parent 0090ae5cf2
commit 20b2574da8
1 changed files with 1 additions and 1 deletions

View File

@ -1056,7 +1056,7 @@ void CheckClass::privateFunctions()
bool used = checkFunctionUsage(privateFuncs.front(), scope); // Usage in this class
// Check in friend classes
const std::vector<Type::FriendInfo>& friendList = scope->definedType->friendList;
for (size_t i = 0; i < friendList.size(); i++) {
for (size_t i = 0; i < friendList.size() && !used; i++) {
if (friendList[i].type)
used = checkFunctionUsage(privateFuncs.front(), friendList[i].type->classScope);
else