aboutsummaryrefslogtreecommitdiff
path: root/src/common/String.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-27 21:37:38 +0800
committercrupest <crupest@outlook.com>2022-01-27 21:37:38 +0800
commit103bcb137273729a0f23ff3771e26150a64454ba (patch)
tree5d75e869cc4b1bf0f2afdfbc9ed5ff0f78e0d030 /src/common/String.cpp
parent560c0ead613658a2b7444907c3d1d69e49be8c32 (diff)
downloadcru-103bcb137273729a0f23ff3771e26150a64454ba.tar.gz
cru-103bcb137273729a0f23ff3771e26150a64454ba.tar.bz2
cru-103bcb137273729a0f23ff3771e26150a64454ba.zip
...
Diffstat (limited to 'src/common/String.cpp')
-rw-r--r--src/common/String.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/String.cpp b/src/common/String.cpp
index e791d119..a43c2abd 100644
--- a/src/common/String.cpp
+++ b/src/common/String.cpp
@@ -290,7 +290,7 @@ String& String::Trim() {
}
void String::AppendCodePoint(CodePoint code_point) {
- if (Utf16EncodeCodePointAppend(code_point, *this)) {
+ if (!Utf16EncodeCodePointAppend(code_point, *this)) {
throw TextEncodeException(u"Code point out of range.");
}
}