summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-20 15:29:41 +0200
committerNoel Grandin <noel@peralex.com>2014-02-21 11:59:09 +0200
commitf5d4d2bf566cd55394d1d1f30ebcb5a180089fdd (patch)
treefbfd89ecfe07b6ad89e66719739ef4ad3c492e8f /l10ntools
parent2cd2130d67035d2bbfb5ebca6a82d0a53f89e298 (diff)
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
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/export.hxx1
-rw-r--r--l10ntools/source/export.cxx6
2 files changed, 3 insertions, 4 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 97923e0070c5..b66a5562637a 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -359,7 +359,6 @@ public:
private:
std::queue<QueueEntry>* aQueueNext;
std::queue<QueueEntry>* aQueueCur;
- std::queue<QueueEntry>* aQref;
Export& aExport;
bool bStart;
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index a230b1cfa967..76cb1448bcd3 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -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;