Rename private member variables

This commit is contained in:
Daniel Marjamäki 2018-06-17 19:04:06 +02:00
parent 2a495184d2
commit a25461919c
2 changed files with 4 additions and 4 deletions

View File

@ -1401,7 +1401,7 @@ bool CheckUnusedVar::isRecordTypeWithoutSideEffects(const Type* type)
// a type that has no side effects (no constructors and no members with constructors)
/** @todo false negative: check constructors for side effects */
const std::pair<std::map<const Type *,bool>::iterator,bool> found=isRecordTypeWithoutSideEffectsMap.insert(
const std::pair<std::map<const Type *,bool>::iterator,bool> found=mIsRecordTypeWithoutSideEffectsMap.insert(
std::pair<const Type *,bool>(type,false)); //Initialize with side effects for possible recursions
bool & withoutSideEffects=found.first->second;
if (!found.second)
@ -1427,7 +1427,7 @@ bool CheckUnusedVar::isEmptyType(const Type* type)
{
// a type that has no variables and no constructor
const std::pair<std::map<const Type *,bool>::iterator,bool> found=isEmptyTypeMap.insert(
const std::pair<std::map<const Type *,bool>::iterator,bool> found=mIsEmptyTypeMap.insert(
std::pair<const Type *,bool>(type,false));
bool & emptyType=found.first->second;
if (!found.second)

View File

@ -112,9 +112,9 @@ private:
"- unused struct member\n";
}
std::map<const Type *,bool> isRecordTypeWithoutSideEffectsMap;
std::map<const Type *,bool> mIsRecordTypeWithoutSideEffectsMap;
std::map<const Type *,bool> isEmptyTypeMap;
std::map<const Type *,bool> mIsEmptyTypeMap;
};
/// @}