From 9571c69b51115454c6a699be9492024f7b46c2b4 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 23 Jun 2021 16:34:36 -0400 Subject: [PATCH] Add bilingual_str::clear() --- src/util/translation.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/translation.h b/src/util/translation.h index 99899ef3c20..62388b568c3 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)