Skip to content

Commit

Permalink
Fixed naming and small bug dealing with finished tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Claydough6 committed Jun 4, 2021
1 parent c83cd85 commit 7183914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void showTasks( stringstream& ss, const vector<Task>& tasks ) {

cout << " " << t.getName() << " - " << t.getPriority() << " : ";
for ( const string& tag : t.getTags() ) {
if ( !noPrint(tag) )
if ( !hiddenTag(tag) )
cout << tag << ", ";
}
cout << endl;
Expand Down Expand Up @@ -186,7 +186,7 @@ void removeTags( stringstream& ss, vector<Task>& tasks ) {
}


bool noPrint( const string& tag ) {
bool hiddenTag( const string& tag ) {
if ( tag == "all" ) {
return true;
} else if ( tag == "finished" ) {
Expand Down
2 changes: 1 addition & 1 deletion parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ void addTags( stringstream& ss, vector<Task>& tasks );

void removeTags( stringstream& ss, vector<Task>& tasks );

bool noPrint( const string& tag );
bool hiddenTag( const string& tag );

#endif

0 comments on commit 7183914

Please sign in to comment.