summaryrefslogtreecommitdiff
path: root/fxbarcode/oned/BC_OnedUPCAWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/oned/BC_OnedUPCAWriter.cpp')
-rw-r--r--fxbarcode/oned/BC_OnedUPCAWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fxbarcode/oned/BC_OnedUPCAWriter.cpp b/fxbarcode/oned/BC_OnedUPCAWriter.cpp
index 51858452e9..025f851526 100644
--- a/fxbarcode/oned/BC_OnedUPCAWriter.cpp
+++ b/fxbarcode/oned/BC_OnedUPCAWriter.cpp
@@ -43,7 +43,7 @@ void CBC_OnedUPCAWriter::Init() {
CBC_OnedUPCAWriter::~CBC_OnedUPCAWriter() {}
bool CBC_OnedUPCAWriter::CheckContentValidity(const WideStringView& contents) {
- for (FX_STRSIZE i = 0; i < contents.GetLength(); ++i) {
+ for (size_t i = 0; i < contents.GetLength(); ++i) {
if (contents[i] < '0' || contents[i] > '9')
return false;
}
@@ -53,7 +53,7 @@ bool CBC_OnedUPCAWriter::CheckContentValidity(const WideStringView& contents) {
WideString CBC_OnedUPCAWriter::FilterContents(const WideStringView& contents) {
WideString filtercontents;
wchar_t ch;
- for (FX_STRSIZE i = 0; i < contents.GetLength(); i++) {
+ for (size_t i = 0; i < contents.GetLength(); i++) {
ch = contents[i];
if (ch > 175) {
i++;
@@ -69,8 +69,8 @@ WideString CBC_OnedUPCAWriter::FilterContents(const WideStringView& contents) {
int32_t CBC_OnedUPCAWriter::CalcChecksum(const ByteString& contents) {
int32_t odd = 0;
int32_t even = 0;
- FX_STRSIZE j = 1;
- for (FX_STRSIZE i = contents.GetLength(); i > 0; i--) {
+ size_t j = 1;
+ for (size_t i = contents.GetLength(); i > 0; i--) {
if (j % 2) {
odd += FXSYS_DecimalCharToInt(contents[i - 1]);
} else {