Skip to content

Commit

Permalink
Functions 'clean' renamed to 'clear'
Browse files Browse the repository at this point in the history
  • Loading branch information
daviinacio committed Sep 16, 2019
1 parent 8f542a9 commit 5a1ab4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Buffer::Buffer(int length, int init){
this->values = new int[length];
this->length = length;
this->init = init;
this->clean();
this->clear();
}


Expand Down Expand Up @@ -58,7 +58,7 @@ void Buffer::insert(int value){
this->calcAverage();
}

void Buffer::clean(){
// Clean the Buffer and enable to fill on first insert
void Buffer::clear(){
// Clear the Buffer and enable to fill on first insert
this->fill(this->init);
}
}
2 changes: 1 addition & 1 deletion Buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Buffer {
// Setters
void fill(int);
void insert(int);
void clean();
void clear();

private:
int init;
Expand Down
4 changes: 2 additions & 2 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ empty KEYWORD2
size KEYWORD2
fill KEYWORD2
insert KEYWORD2
clean KEYWORD2
clear KEYWORD2

#######################################
# Instances (KEYWORD2)
Expand All @@ -28,4 +28,4 @@ clean KEYWORD2

#######################################
# Constants (LITERAL1)
#######################################
#######################################

0 comments on commit 5a1ab4f

Please sign in to comment.