Skip to content

Commit e95583a

Browse files
committed
fix ident
1 parent b575613 commit e95583a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/heap.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace alg {
5757
private:
5858
int m_size; // current heap size.
5959
int m_max; // max heap size.
60-
elem * m_heap; // key value pairs.
60+
elem * m_heap; // key value pairs.
6161
public:
6262
Heap(int max) {
6363
m_size = 0;
@@ -122,8 +122,8 @@ namespace alg {
122122
* remove the given data
123123
*/
124124
bool remove(T data) {
125-
for (int i=0;i<m_size;i++) { // loop finding
126-
if (m_heap[i].data == data) { // found
125+
for (int i=0;i<m_size;i++) { // loop finding
126+
if (m_heap[i].data == data) { // found
127127
int n = m_size-1;
128128
if (n != i) {
129129
swap(m_heap[i], m_heap[n]);

0 commit comments

Comments
 (0)