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

Side by Side Diff: core/fxcodec/jbig2/JBig2_SymbolDict.cpp

Issue 2382723003: Move core/fxcrt/include to core/fxcrt (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/fxcodec/jbig2/JBig2_SymbolDict.h ('k') | core/fxcodec/jbig2/JBig2_TrdProc.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 #include "core/fxcodec/jbig2/JBig2_SymbolDict.h" 7 #include "core/fxcodec/jbig2/JBig2_SymbolDict.h"
8 8
9 #include "core/fxcodec/jbig2/JBig2_Image.h" 9 #include "core/fxcodec/jbig2/JBig2_Image.h"
10 #include "core/fxcrt/include/fx_memory.h" 10 #include "core/fxcrt/fx_memory.h"
11 11
12 CJBig2_SymbolDict::CJBig2_SymbolDict() {} 12 CJBig2_SymbolDict::CJBig2_SymbolDict() {}
13 13
14 CJBig2_SymbolDict::~CJBig2_SymbolDict() {} 14 CJBig2_SymbolDict::~CJBig2_SymbolDict() {}
15 15
16 std::unique_ptr<CJBig2_SymbolDict> CJBig2_SymbolDict::DeepCopy() const { 16 std::unique_ptr<CJBig2_SymbolDict> CJBig2_SymbolDict::DeepCopy() const {
17 const CJBig2_SymbolDict* src = this; 17 const CJBig2_SymbolDict* src = this;
18 std::unique_ptr<CJBig2_SymbolDict> dst(new CJBig2_SymbolDict); 18 std::unique_ptr<CJBig2_SymbolDict> dst(new CJBig2_SymbolDict);
19 for (size_t i = 0; i < src->m_SDEXSYMS.size(); ++i) { 19 for (size_t i = 0; i < src->m_SDEXSYMS.size(); ++i) {
20 CJBig2_Image* image = src->m_SDEXSYMS.get(i); 20 CJBig2_Image* image = src->m_SDEXSYMS.get(i);
21 dst->m_SDEXSYMS.push_back(image ? new CJBig2_Image(*image) : nullptr); 21 dst->m_SDEXSYMS.push_back(image ? new CJBig2_Image(*image) : nullptr);
22 } 22 }
23 dst->m_gbContext = src->m_gbContext; 23 dst->m_gbContext = src->m_gbContext;
24 dst->m_grContext = src->m_grContext; 24 dst->m_grContext = src->m_grContext;
25 return dst; 25 return dst;
26 } 26 }
OLDNEW
« no previous file with comments | « core/fxcodec/jbig2/JBig2_SymbolDict.h ('k') | core/fxcodec/jbig2/JBig2_TrdProc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698