summaryrefslogtreecommitdiff
path: root/fxbarcode/oned
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/oned')
-rw-r--r--fxbarcode/oned/BC_OnedEAN13Writer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fxbarcode/oned/BC_OnedEAN13Writer.cpp b/fxbarcode/oned/BC_OnedEAN13Writer.cpp
index 7f38661079..d44eb39916 100644
--- a/fxbarcode/oned/BC_OnedEAN13Writer.cpp
+++ b/fxbarcode/oned/BC_OnedEAN13Writer.cpp
@@ -22,6 +22,8 @@
#include "fxbarcode/oned/BC_OnedEAN13Writer.h"
+#include <algorithm>
+#include <cwctype>
#include <memory>
#include <vector>
@@ -55,8 +57,7 @@ CBC_OnedEAN13Writer::~CBC_OnedEAN13Writer() {}
bool CBC_OnedEAN13Writer::CheckContentValidity(
const CFX_WideStringC& contents) {
- return std::all_of(contents.begin(), contents.end(),
- [](const wchar_t& w) { return w >= L'0' && w <= L'9'; });
+ return std::all_of(contents.begin(), contents.end(), std::iswdigit);
}
CFX_WideString CBC_OnedEAN13Writer::FilterContents(