tabbing
[iotcloud.git] / version2 / src / C / SlotBuffer.cc
index 91ac22edc1e6667c2fce73d7cfd3dbba06c03402..4ddf4ba3c7b0c4d12c3ac519f7a12b4118d487d4 100644 (file)
@@ -1,4 +1,4 @@
-#include"SlotBuffer.h"
+#include "SlotBuffer.h"
 /**
  * Circular buffer that holds the live set of slots.
  * @author Brian Demsky
@@ -25,8 +25,8 @@ int SlotBuffer::capacity() {
 void SlotBuffer::resize(int newsize) {
        if (newsize == (array->length() - 1))
                return;
-       
-       Array<Slot *> * newarray = new Array<Slot *>(newsize + 1);
+
+       Array<Slot *> *newarray = new Array<Slot *>(newsize + 1);
        int currsize = size();
        int index = tail;
        for (int i = 0; i < currsize; i++) {
@@ -51,9 +51,9 @@ void SlotBuffer::incrementTail() {
                tail = 0;
 }
 
-void SlotBuffer::putSlot(Slot * s) {
+void SlotBuffer::putSlot(Slot *s) {
        int64_t checkNum = (getNewestSeqNum() + 1);
-       
+
        if (checkNum != s->getSequenceNumber()) {
                // We have a gap so expunge all our slots
                oldestseqn = s->getSequenceNumber();
@@ -62,10 +62,10 @@ void SlotBuffer::putSlot(Slot * s) {
                array->set(0, s);
                return;
        }
-       
+
        array->set(head, s);
        incrementHead();
-       
+
        if (oldestseqn == 0) {
                oldestseqn = s->getSequenceNumber();
        }