diff options
Diffstat (limited to 'fxbarcode/oned/BC_OnedCodaBarWriter.cpp')
-rw-r--r-- | fxbarcode/oned/BC_OnedCodaBarWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fxbarcode/oned/BC_OnedCodaBarWriter.cpp b/fxbarcode/oned/BC_OnedCodaBarWriter.cpp index 42990f7f3a..c51b1c2eb9 100644 --- a/fxbarcode/oned/BC_OnedCodaBarWriter.cpp +++ b/fxbarcode/oned/BC_OnedCodaBarWriter.cpp @@ -109,6 +109,7 @@ bool CBC_OnedCodaBarWriter::CheckContentValidity( WideString CBC_OnedCodaBarWriter::FilterContents( const WideStringView& contents) { WideString filtercontents; + filtercontents.Reserve(contents.GetLength()); wchar_t ch; for (size_t index = 0; index < contents.GetLength(); index++) { ch = contents[index]; |