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

Unified Diff: core/fxcrt/include/fx_basic.h

Issue 1908073003: Make CFX_BasicArray non-copyable. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | xfa/fxbarcode/datamatrix/BC_DataMatrixDecodedBitStreamParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxcrt/include/fx_basic.h
diff --git a/core/fxcrt/include/fx_basic.h b/core/fxcrt/include/fx_basic.h
index 5a577c2e545bb3ed13c28206abf4eaf7862d8aa5..676996c5d53e5bf3dd485c6a44777f1ad4566a7d 100644
--- a/core/fxcrt/include/fx_basic.h
+++ b/core/fxcrt/include/fx_basic.h
@@ -231,32 +231,24 @@ class CFX_UTF8Encoder {
class CFX_BasicArray {
protected:
CFX_BasicArray(int unit_size);
-
+ CFX_BasicArray(const CFX_BasicArray&) = delete;
~CFX_BasicArray();
FX_BOOL SetSize(int nNewSize);
-
FX_BOOL Append(const CFX_BasicArray& src);
-
FX_BOOL Copy(const CFX_BasicArray& src);
-
uint8_t* InsertSpaceAt(int nIndex, int nCount);
-
FX_BOOL RemoveAt(int nIndex, int nCount);
-
FX_BOOL InsertAt(int nStartIndex, const CFX_BasicArray* pNewArray);
-
const void* GetDataPtr(int index) const;
protected:
uint8_t* m_pData;
-
int m_nSize;
-
int m_nMaxSize;
-
int m_nUnitSize;
};
+
template <class TYPE>
class CFX_ArrayTemplate : public CFX_BasicArray {
public:
« no previous file with comments | « no previous file | xfa/fxbarcode/datamatrix/BC_DataMatrixDecodedBitStreamParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698