| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 7 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| 9 | 9 |
| 10 #include "fx_memory.h" | 10 #include "fx_memory.h" |
| (...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 | 948 |
| 949 private: | 949 private: |
| 950 T* const m_Location; | 950 T* const m_Location; |
| 951 const T m_OldValue; | 951 const T m_OldValue; |
| 952 }; | 952 }; |
| 953 | 953 |
| 954 struct FxFreeDeleter { | 954 struct FxFreeDeleter { |
| 955 inline void operator()(void* ptr) const { FX_Free(ptr); } | 955 inline void operator()(void* ptr) const { FX_Free(ptr); } |
| 956 }; | 956 }; |
| 957 | 957 |
| 958 // Used with nonstd::unique_ptr to Release() objects that can't be deleted. | 958 // Used with std::unique_ptr to Release() objects that can't be deleted. |
| 959 template <class T> | 959 template <class T> |
| 960 struct ReleaseDeleter { | 960 struct ReleaseDeleter { |
| 961 inline void operator()(T* ptr) const { ptr->Release(); } | 961 inline void operator()(T* ptr) const { ptr->Release(); } |
| 962 }; | 962 }; |
| 963 | 963 |
| 964 #define FX_DATALIST_LENGTH 1024 | 964 #define FX_DATALIST_LENGTH 1024 |
| 965 template <size_t unit> | 965 template <size_t unit> |
| 966 class CFX_SortListArray { | 966 class CFX_SortListArray { |
| 967 protected: | 967 protected: |
| 968 struct DataList { | 968 struct DataList { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 FX_FLOAT c; | 1140 FX_FLOAT c; |
| 1141 FX_FLOAT d; | 1141 FX_FLOAT d; |
| 1142 FX_FLOAT e; | 1142 FX_FLOAT e; |
| 1143 FX_FLOAT f; | 1143 FX_FLOAT f; |
| 1144 FX_FLOAT g; | 1144 FX_FLOAT g; |
| 1145 FX_FLOAT h; | 1145 FX_FLOAT h; |
| 1146 FX_FLOAT i; | 1146 FX_FLOAT i; |
| 1147 }; | 1147 }; |
| 1148 | 1148 |
| 1149 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 1149 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| OLD | NEW |