summaryrefslogtreecommitdiff
path: root/fxbarcode/datamatrix/BC_EncoderContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/datamatrix/BC_EncoderContext.cpp')
-rw-r--r--fxbarcode/datamatrix/BC_EncoderContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fxbarcode/datamatrix/BC_EncoderContext.cpp b/fxbarcode/datamatrix/BC_EncoderContext.cpp
index 404c07d980..eaf3768f49 100644
--- a/fxbarcode/datamatrix/BC_EncoderContext.cpp
+++ b/fxbarcode/datamatrix/BC_EncoderContext.cpp
@@ -36,8 +36,8 @@ CBC_EncoderContext::CBC_EncoderContext(const CFX_WideString& msg,
CFX_WideString sb;
FX_STRSIZE c = dststr.GetLength();
for (FX_STRSIZE i = 0; i < c; i++) {
- wchar_t ch = static_cast<wchar_t>(dststr.GetAt(i) & 0xff);
- if (ch == '?' && dststr.GetAt(i) != '?') {
+ wchar_t ch = static_cast<wchar_t>(dststr[i] & 0xff);
+ if (ch == '?' && dststr[i] != '?') {
e = BCExceptionCharactersOutsideISO88591Encoding;
}
sb += ch;
@@ -60,10 +60,10 @@ void CBC_EncoderContext::setSkipAtEnd(int32_t count) {
m_skipAtEnd = count;
}
wchar_t CBC_EncoderContext::getCurrentChar() {
- return m_msg.GetAt(m_pos);
+ return m_msg[m_pos];
}
wchar_t CBC_EncoderContext::getCurrent() {
- return m_msg.GetAt(m_pos);
+ return m_msg[m_pos];
}
void CBC_EncoderContext::writeCodewords(const CFX_WideString& codewords) {