Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h

Issue 2649563003: Replace CFX_ByteArray with CFX_ArrayTemplate<uint8_t> (Closed)
Patch Set: re-upload Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp ('k') | xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h
diff --git a/xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h b/xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h
index 3b88f888fd601ee4bbfb10fb1625a0f533b3ad16..5d72f1074e3753159b8258a155815ebcddc5e600 100644
--- a/xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h
+++ b/xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h
@@ -23,7 +23,7 @@ class CBC_HighLevelEncoder : public CBC_SymbolShapeHint {
CBC_HighLevelEncoder();
~CBC_HighLevelEncoder() override;
- CFX_ByteArray& getBytesForMessage(CFX_WideString msg);
+ CFX_ArrayTemplate<uint8_t>& getBytesForMessage(CFX_WideString msg);
static CFX_WideString encodeHighLevel(CFX_WideString msg,
CFX_WideString ecLevel,
int32_t& e);
@@ -59,15 +59,15 @@ class CBC_HighLevelEncoder : public CBC_SymbolShapeHint {
static const wchar_t* MACRO_05_HEADER;
static const wchar_t* MACRO_06_HEADER;
static const wchar_t MACRO_TRAILER;
- CFX_ByteArray m_bytearray;
+ CFX_ArrayTemplate<uint8_t> m_bytearray;
private:
static FX_WCHAR randomize253State(FX_WCHAR ch, int32_t codewordPosition);
static int32_t findMinimums(std::vector<FX_FLOAT>& charCounts,
- CFX_Int32Array& intCharCounts,
+ CFX_ArrayTemplate<int32_t>& intCharCounts,
int32_t min,
- CFX_ByteArray& mins);
- static int32_t getMinimumCount(CFX_ByteArray& mins);
+ CFX_ArrayTemplate<uint8_t>& mins);
+ static int32_t getMinimumCount(CFX_ArrayTemplate<uint8_t>& mins);
static bool isNativeC40(FX_WCHAR ch);
static bool isNativeText(FX_WCHAR ch);
static bool isNativeX12(FX_WCHAR ch);
« no previous file with comments | « xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp ('k') | xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698