File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Buffer::Buffer(int length, int init){
55 this ->values = new int [length];
66 this ->length = length;
77 this ->init = init;
8- this ->clean ();
8+ this ->clear ();
99}
1010
1111
@@ -58,7 +58,7 @@ void Buffer::insert(int value){
5858 this ->calcAverage ();
5959}
6060
61- void Buffer::clean (){
62- // Clean the Buffer and enable to fill on first insert
61+ void Buffer::clear (){
62+ // Clear the Buffer and enable to fill on first insert
6363 this ->fill (this ->init );
64- }
64+ }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Buffer {
1616 // Setters
1717 void fill (int );
1818 void insert (int );
19- void clean ();
19+ void clear ();
2020
2121 private:
2222 int init;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ empty KEYWORD2
1919size KEYWORD2
2020fill KEYWORD2
2121insert KEYWORD2
22- clean KEYWORD2
22+ clear KEYWORD2
2323
2424#######################################
2525# Instances (KEYWORD2)
@@ -28,4 +28,4 @@ clean KEYWORD2
2828
2929#######################################
3030# Constants (LITERAL1)
31- #######################################
31+ #######################################
You can’t perform that action at this time.
0 commit comments