| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/fpdfdoc/csection.h" | 7 #include "core/fpdfdoc/csection.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "core/fpdfdoc/cline.h" |
| 11 #include "core/fpdfdoc/cpvt_wordinfo.h" | 12 #include "core/fpdfdoc/cpvt_wordinfo.h" |
| 12 | 13 |
| 13 CSection::CSection(CPDF_VariableText* pVT) : m_pVT(pVT) {} | 14 CSection::CSection(CPDF_VariableText* pVT) : m_pVT(pVT) {} |
| 14 | 15 |
| 15 CSection::~CSection() { | 16 CSection::~CSection() { |
| 16 ResetAll(); | 17 ResetAll(); |
| 17 } | 18 } |
| 18 | 19 |
| 19 void CSection::ResetAll() { | 20 void CSection::ResetAll() { |
| 20 ResetWordArray(); | 21 ResetWordArray(); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 ClearLeftWords(PlaceRange.EndPos.nWordIndex); | 282 ClearLeftWords(PlaceRange.EndPos.nWordIndex); |
| 282 } else { | 283 } else { |
| 283 ResetWordArray(); | 284 ResetWordArray(); |
| 284 } | 285 } |
| 285 } | 286 } |
| 286 | 287 |
| 287 void CSection::ClearWord(const CPVT_WordPlace& place) { | 288 void CSection::ClearWord(const CPVT_WordPlace& place) { |
| 288 delete m_WordArray.GetAt(place.nWordIndex); | 289 delete m_WordArray.GetAt(place.nWordIndex); |
| 289 m_WordArray.RemoveAt(place.nWordIndex); | 290 m_WordArray.RemoveAt(place.nWordIndex); |
| 290 } | 291 } |
| OLD | NEW |