Fix Cppcheck warnings
This commit is contained in:
parent
d353a4ecba
commit
cd49eb0978
|
@ -343,6 +343,7 @@ namespace {
|
||||||
|
|
||||||
Data(const Data &old)
|
Data(const Data &old)
|
||||||
: DataBase(old.currentFunction, old.settings)
|
: DataBase(old.currentFunction, old.settings)
|
||||||
|
, memory(old.memory)
|
||||||
, symbolValueIndex(old.symbolValueIndex)
|
, symbolValueIndex(old.symbolValueIndex)
|
||||||
, errorLogger(old.errorLogger)
|
, errorLogger(old.errorLogger)
|
||||||
, tokenizer(old.tokenizer)
|
, tokenizer(old.tokenizer)
|
||||||
|
@ -351,7 +352,6 @@ namespace {
|
||||||
, startTime(old.startTime)
|
, startTime(old.startTime)
|
||||||
, mTrackExecution(old.mTrackExecution)
|
, mTrackExecution(old.mTrackExecution)
|
||||||
, mDataIndex(mTrackExecution->getNewDataIndex()) {
|
, mDataIndex(mTrackExecution->getNewDataIndex()) {
|
||||||
memory = old.memory;
|
|
||||||
for (auto &it: memory) {
|
for (auto &it: memory) {
|
||||||
if (!it.second)
|
if (!it.second)
|
||||||
continue;
|
continue;
|
||||||
|
@ -832,9 +832,8 @@ ExprEngine::ArrayValue::ArrayValue(DataBase *data, const Variable *var)
|
||||||
ExprEngine::ArrayValue::ArrayValue(const std::string &name, const ExprEngine::ArrayValue &arrayValue)
|
ExprEngine::ArrayValue::ArrayValue(const std::string &name, const ExprEngine::ArrayValue &arrayValue)
|
||||||
: Value(name, ExprEngine::ValueType::ArrayValue)
|
: Value(name, ExprEngine::ValueType::ArrayValue)
|
||||||
, pointer(arrayValue.pointer), nullPointer(arrayValue.nullPointer), uninitPointer(arrayValue.uninitPointer)
|
, pointer(arrayValue.pointer), nullPointer(arrayValue.nullPointer), uninitPointer(arrayValue.uninitPointer)
|
||||||
|
, data(arrayValue.data), size(arrayValue.size)
|
||||||
{
|
{
|
||||||
size = arrayValue.size;
|
|
||||||
data = arrayValue.data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue