diff --git a/lib/checkunusedvar.cpp b/lib/checkunusedvar.cpp index a2487694f..ad9df56f1 100644 --- a/lib/checkunusedvar.cpp +++ b/lib/checkunusedvar.cpp @@ -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::iterator,bool> found=isRecordTypeWithoutSideEffectsMap.insert( + const std::pair::iterator,bool> found=mIsRecordTypeWithoutSideEffectsMap.insert( std::pair(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::iterator,bool> found=isEmptyTypeMap.insert( + const std::pair::iterator,bool> found=mIsEmptyTypeMap.insert( std::pair(type,false)); bool & emptyType=found.first->second; if (!found.second) diff --git a/lib/checkunusedvar.h b/lib/checkunusedvar.h index ac09f7237..1eef17c70 100644 --- a/lib/checkunusedvar.h +++ b/lib/checkunusedvar.h @@ -112,9 +112,9 @@ private: "- unused struct member\n"; } - std::map isRecordTypeWithoutSideEffectsMap; + std::map mIsRecordTypeWithoutSideEffectsMap; - std::map isEmptyTypeMap; + std::map mIsEmptyTypeMap; }; /// @}