summaryrefslogtreecommitdiff
path: root/fxbarcode/qrcode
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/qrcode')
-rw-r--r--fxbarcode/qrcode/BC_QRCoderEncoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxbarcode/qrcode/BC_QRCoderEncoder.cpp b/fxbarcode/qrcode/BC_QRCoderEncoder.cpp
index 955e2c7295..cad70b81c5 100644
--- a/fxbarcode/qrcode/BC_QRCoderEncoder.cpp
+++ b/fxbarcode/qrcode/BC_QRCoderEncoder.cpp
@@ -432,7 +432,7 @@ void SplitString(const CFX_ByteString& content,
index += 2;
}
if (index)
- result->push_back({CBC_QRCoderMode::sGBK, content.Mid(0, index)});
+ result->push_back({CBC_QRCoderMode::sGBK, content.Left(index)});
if (index >= content.GetLength())
return;
@@ -479,7 +479,7 @@ void SplitString(const CFX_ByteString& content,
}
flag = index;
if (index < content.GetLength())
- SplitString(content.Mid(index, content.GetLength() - index), result);
+ SplitString(content.Right(content.GetLength() - index), result);
}
CBC_QRCoderMode* ChooseMode(const CFX_ByteString& content,