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 #include "core/include/fpdfapi/fpdf_parser.h" |
| 8 |
7 #include "core/include/fpdfapi/fpdf_serial.h" | 9 #include "core/include/fpdfapi/fpdf_serial.h" |
8 | 10 |
9 CFDF_Document::CFDF_Document() : CPDF_IndirectObjects(NULL) { | 11 CFDF_Document::CFDF_Document() : CPDF_IndirectObjects(NULL) { |
10 m_pRootDict = NULL; | 12 m_pRootDict = NULL; |
11 m_pFile = NULL; | 13 m_pFile = NULL; |
12 m_bOwnFile = FALSE; | 14 m_bOwnFile = FALSE; |
13 } | 15 } |
14 CFDF_Document::~CFDF_Document() { | 16 CFDF_Document::~CFDF_Document() { |
15 if (m_bOwnFile && m_pFile) { | 17 if (m_bOwnFile && m_pFile) { |
16 m_pFile->Release(); | 18 m_pFile->Release(); |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 result += wsFileName[1]; | 172 result += wsFileName[1]; |
171 result += ':'; | 173 result += ':'; |
172 result += ChangeSlash(wsFileName.c_str() + 2); | 174 result += ChangeSlash(wsFileName.c_str() + 2); |
173 return result; | 175 return result; |
174 } | 176 } |
175 CFX_WideString result; | 177 CFX_WideString result; |
176 result += '\\'; | 178 result += '\\'; |
177 result += ChangeSlash(wsFileName.c_str()); | 179 result += ChangeSlash(wsFileName.c_str()); |
178 return result; | 180 return result; |
179 } | 181 } |
OLD | NEW |