aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-06-23 16:34:36 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-07-01 12:57:12 -0400
commit9571c69b51115454c6a699be9492024f7b46c2b4 (patch)
treec5b4a8bd466d4141108b729605a022cf0103e7f3
parenta926d6dfd291da5578d8af422bde03fd17456d96 (diff)
Add bilingual_str::clear()
-rw-r--r--src/util/translation.h6
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)