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

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

Issue 1707923002: Expand all paths to be based off pdfium/ directory (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 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
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 "JBig2_SymbolDict.h" 7 #include "core/src/fxcodec/jbig2/JBig2_SymbolDict.h"
8 8
9 #include "JBig2_Image.h" 9 #include "core/src/fxcodec/jbig2/JBig2_Image.h"
10 #include "core/include/fxcrt/fx_memory.h" 10 #include "core/include/fxcrt/fx_memory.h"
Tom Sepez 2016/02/17 21:32:27 order
dsinclair 2016/02/17 21:54:00 Done.
11 11
12 CJBig2_SymbolDict::CJBig2_SymbolDict() { 12 CJBig2_SymbolDict::CJBig2_SymbolDict() {
13 } 13 }
14 14
15 CJBig2_SymbolDict::~CJBig2_SymbolDict() { 15 CJBig2_SymbolDict::~CJBig2_SymbolDict() {
16 } 16 }
17 17
18 std::unique_ptr<CJBig2_SymbolDict> CJBig2_SymbolDict::DeepCopy() const { 18 std::unique_ptr<CJBig2_SymbolDict> CJBig2_SymbolDict::DeepCopy() const {
19 const CJBig2_SymbolDict* src = this; 19 const CJBig2_SymbolDict* src = this;
20 std::unique_ptr<CJBig2_SymbolDict> dst(new CJBig2_SymbolDict); 20 std::unique_ptr<CJBig2_SymbolDict> dst(new CJBig2_SymbolDict);
21 for (size_t i = 0; i < src->m_SDEXSYMS.size(); ++i) { 21 for (size_t i = 0; i < src->m_SDEXSYMS.size(); ++i) {
22 CJBig2_Image* image = src->m_SDEXSYMS.get(i); 22 CJBig2_Image* image = src->m_SDEXSYMS.get(i);
23 dst->m_SDEXSYMS.push_back(image ? new CJBig2_Image(*image) : nullptr); 23 dst->m_SDEXSYMS.push_back(image ? new CJBig2_Image(*image) : nullptr);
24 } 24 }
25 dst->m_gbContext = src->m_gbContext; 25 dst->m_gbContext = src->m_gbContext;
26 dst->m_grContext = src->m_grContext; 26 dst->m_grContext = src->m_grContext;
27 return dst; 27 return dst;
28 } 28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698