projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug fix to model.cc
[c11tester.git]
/
stl-model.h
diff --git
a/stl-model.h
b/stl-model.h
index 70490965a2c70404eaf94a42ddc715777772f20d..cbcae7c04162f979cebb3d338cced3ad5d97e15e 100644
(file)
--- a/
stl-model.h
+++ b/
stl-model.h
@@
-60,9
+60,9
@@
public:
mllnode<_Tp> *tmp = head;
head = head->next;
if (head == NULL)
mllnode<_Tp> *tmp = head;
head = head->next;
if (head == NULL)
- tail = NULL;
+
tail = NULL;
else
else
- head->prev = NULL;
+
head->prev = NULL;
delete tmp;
_size--;
}
delete tmp;
_size--;
}
@@
-71,9
+71,9
@@
public:
mllnode<_Tp> *tmp = tail;
tail = tail->prev;
if (tail == NULL)
mllnode<_Tp> *tmp = tail;
tail = tail->prev;
if (tail == NULL)
- head = NULL;
+
head = NULL;
else
else
- tail->next = NULL;
+
tail->next = NULL;
delete tmp;
_size--;
}
delete tmp;
_size--;
}
@@
-218,9
+218,9
@@
public:
sllnode<_Tp> *tmp = head;
head = head->next;
if (head == NULL)
sllnode<_Tp> *tmp = head;
head = head->next;
if (head == NULL)
- tail = NULL;
+
tail = NULL;
else
else
- head->prev = NULL;
+
head->prev = NULL;
delete tmp;
_size--;
}
delete tmp;
_size--;
}
@@
-229,9
+229,9
@@
public:
sllnode<_Tp> *tmp = tail;
tail = tail->prev;
if (tail == NULL)
sllnode<_Tp> *tmp = tail;
tail = tail->prev;
if (tail == NULL)
- head = NULL;
+
head = NULL;
else
else
- tail->next = NULL;
+
tail->next = NULL;
delete tmp;
_size--;
}
delete tmp;
_size--;
}