Skip to content

Commit

Permalink
Add bilingual_str::clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Jul 1, 2021
1 parent a926d6d commit 9571c69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/util/translation.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ struct bilingual_str {
{
return original.empty();
}

void clear()
{
original.clear();
translated.clear();
}
};

inline bilingual_str operator+(bilingual_str lhs, const bilingual_str& rhs)
Expand Down

0 comments on commit 9571c69

Please sign in to comment.