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

Side by Side Diff: core/include/fxcrt/fx_basic.h

Issue 1547833002: Switch from nonstd::unique_ptr to std::unique_ptr. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « core/include/fxcodec/fx_codec.h ('k') | core/include/fxge/fx_font.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « core/include/fxcodec/fx_codec.h ('k') | core/include/fxge/fx_font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698