Compiles w/o warnings
[iotcloud.git] / version2 / src / C / SlotIndexer.cc
index 0fa6449a6b7c7ac25bff0611f9fd8a7334706b29..c3633188f141cf20d1ec4c19b19a633c00df0ca1 100644 (file)
@@ -1,5 +1,7 @@
 #include "SlotIndexer.h"
-
+#include "Slot.h"
+#include "Error.h"
+#include "SlotBuffer.h"
 /**
  * Slot indexer allows slots in both the slot buffer and the new
  * server response to looked up in a consistent fashion.
@@ -7,13 +9,13 @@
  * @version 1.0
  */
 
-SlotIndexer::SlotIndexer(Array<Slot*> * _updates, SlotBuffer * _buffer) :
-       buffer(_buffer),
+SlotIndexer::SlotIndexer(Array<Slot *> *_updates, SlotBuffer *_buffer) :
        updates(_updates),
+       buffer(_buffer),
        firstslotseqnum(updates->get(0)->getSequenceNumber()) {
 }
 
-Slot * SlotIndexer::getSlot(int64_t seqnum) {
+Slot *SlotIndexer::getSlot(int64_t seqnum) {
        if (seqnum >= firstslotseqnum) {
                int32_t offset = (int32_t) (seqnum - firstslotseqnum);
                if (offset >= updates->length())