edits
[iotcloud.git] / version2 / src / C / ArbitrationRound.cpp
old mode 100644 (file)
new mode 100755 (executable)
index cc316f0..ef442ca
@@ -4,7 +4,7 @@
 
 ArbitrationRound::ArbitrationRound(Commit *_commit, Hashset<Abort *> *_abortsBefore) :
        abortsBefore(_abortsBefore),
-       parts(new Vector<Entry *>()),
+       parts(new MyVector<Entry *>()),
        commit(_commit),
        currentSize(0),
        didSendPart(false),
@@ -45,7 +45,7 @@ void ArbitrationRound::generateParts() {
                parts->add((Entry *)abit->next());
        delete abit;
        if (commit != NULL) {
-               Vector<CommitPart *> *cParts = commit->getParts();
+               MyVector<CommitPart *> *cParts = commit->getParts();
                uint cPartsSize = cParts->size();
                for (uint i = 0; i < cPartsSize; i++) {
                        CommitPart * part = cParts->get(i);
@@ -55,11 +55,11 @@ void ArbitrationRound::generateParts() {
        }
 }
 
-Vector<Entry *> *ArbitrationRound::getParts() {
+MyVector<Entry *> *ArbitrationRound::getParts() {
        return parts;
 }
 
-void ArbitrationRound::removeParts(Vector<Entry *> *removeParts) {
+void ArbitrationRound::removeParts(MyVector<Entry *> *removeParts) {
        uint size = removeParts->size();
        for(uint i=0; i < size; i++) {
                Entry * e = removeParts->get(i);