diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-06-23 16:34:36 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-07-01 12:57:12 -0400 |
commit | 9571c69b51115454c6a699be9492024f7b46c2b4 (patch) | |
tree | c5b4a8bd466d4141108b729605a022cf0103e7f3 /src | |
parent | a926d6dfd291da5578d8af422bde03fd17456d96 (diff) |
Add bilingual_str::clear()
Diffstat (limited to 'src')
-rw-r--r-- | src/util/translation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/translation.h b/src/util/translation.h index 99899ef3c2..62388b568c 100644 --- a/src/util/translation.h +++ b/src/util/translation.h @@ -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) |