Kaydet (Commit) f5d4d2bf authored tarafından Noel Grandin's avatar Noel Grandin

cid#707946 Uninitialized pointer field

this field was actually only used to swap values between other values,
so convert it to local variables

Change-Id: I274e8978651f905c0bd2391ac4baaf5c23388425
üst 2cd2130d
......@@ -359,7 +359,6 @@ public:
private:
std::queue<QueueEntry>* aQueueNext;
std::queue<QueueEntry>* aQueueCur;
std::queue<QueueEntry>* aQref;
Export& aExport;
bool bStart;
......
......@@ -1253,7 +1253,7 @@ void ParserQueue::Push( const QueueEntry& aEntry )
bLastWasM = bCurrentIsM;
// next -> current
bCurrentIsM = bNextIsM;
aQref = aQueueCur;
std::queue<QueueEntry>* aQref = aQueueCur;
aQueueCur = aQueueNext;
aQueueNext = aQref;
......@@ -1265,7 +1265,7 @@ void ParserQueue::Push( const QueueEntry& aEntry )
bLastWasM = bCurrentIsM;
// next -> current
bCurrentIsM = bNextIsM;
aQref = aQueueCur;
std::queue<QueueEntry>* aQref = aQueueCur;
aQueueCur = aQueueNext;
aQueueNext = aQref;
}
......@@ -1278,7 +1278,7 @@ void ParserQueue::Close(){
// next -> current
bLastWasM = bCurrentIsM;
bCurrentIsM = bNextIsM;
aQref = aQueueCur;
std::queue<QueueEntry>* aQref = aQueueCur;
aQueueCur = aQueueNext;
aQueueNext = aQref;
bNextIsM = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment