edits
[iotcloud.git] / version2 / src / C / Transaction.cc
index 8dba5a3ad99fa71045bbc1141d2a73ace5f14083..b5b8e5074ad6a5b5a682a41dd933d30264bf24f3 100644 (file)
@@ -48,7 +48,7 @@ void Transaction::addPartDecode(TransactionPart *newPart) {
        clientLocalSequenceNumber = newPart->getClientLocalSequenceNumber();
        machineId = newPart->getMachineId();
 
-       TransactionPart * previoslySeenPart = parts->put(newPart->getPartNumber(), newPart);
+       TransactionPart *previoslySeenPart = parts->put(newPart->getPartNumber(), newPart);
 
        if (previoslySeenPart != NULL) {
                // Set dead the old one since the new one is a rescued version of this part
@@ -198,7 +198,7 @@ void Transaction::setDead() {
 
        // Make all the parts of this transaction dead
        for (int32_t partNumber : parts->keySet()) {
-               TransactionPartpart = parts->get(partNumber);
+               TransactionPart *part = parts->get(partNumber);
                part->setDead();
        }
 }
@@ -227,7 +227,7 @@ void Transaction::decodeTransactionData() {
        }
 
        // Decoder Object
-       ByteBufferbbDecode = ByteBuffer_wrap(combinedData);
+       ByteBuffer *bbDecode = ByteBuffer_wrap(combinedData);
 
        // Decode how many key value pairs need to be decoded
        int numberOfKVGuards = bbDecode->getInt();