From e5a637cfb23da32443b345b07f090b65771fa1c9 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 16 Oct 2017 11:59:15 -0400 Subject: Hide CPVT_Dash in CPVT_GenerateAP The CPVT_Dash struct is only used in CPVT_GenerateAP. This CL moves the struct definition into the cpp class and removes the cpvt_dash.h file. Change-Id: I0f0c9279ded1086d47e81f1057d51121d9466974 Reviewed-on: https://pdfium-review.googlesource.com/16050 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- core/fpdfdoc/cpvt_dash.h | 21 --------------------- core/fpdfdoc/cpvt_generateap.cpp | 9 +++++++++ core/fpdfdoc/cpvt_generateap.h | 2 +- 3 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 core/fpdfdoc/cpvt_dash.h (limited to 'core') diff --git a/core/fpdfdoc/cpvt_dash.h b/core/fpdfdoc/cpvt_dash.h deleted file mode 100644 index f80d104c96..0000000000 --- a/core/fpdfdoc/cpvt_dash.h +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2016 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef CORE_FPDFDOC_CPVT_DASH_H_ -#define CORE_FPDFDOC_CPVT_DASH_H_ - -#include - -struct CPVT_Dash { - CPVT_Dash(int32_t dash, int32_t gap, int32_t phase) - : nDash(dash), nGap(gap), nPhase(phase) {} - - int32_t nDash; - int32_t nGap; - int32_t nPhase; -}; - -#endif // CORE_FPDFDOC_CPVT_DASH_H_ diff --git a/core/fpdfdoc/cpvt_generateap.cpp b/core/fpdfdoc/cpvt_generateap.cpp index ac3e7a51a0..34edd0e088 100644 --- a/core/fpdfdoc/cpvt_generateap.cpp +++ b/core/fpdfdoc/cpvt_generateap.cpp @@ -29,6 +29,15 @@ #include "core/fpdfdoc/cpvt_word.h" #include "third_party/base/ptr_util.h" +struct CPVT_Dash { + CPVT_Dash(int32_t dash, int32_t gap, int32_t phase) + : nDash(dash), nGap(gap), nPhase(phase) {} + + int32_t nDash; + int32_t nGap; + int32_t nPhase; +}; + namespace { bool GenerateWidgetAP(CPDF_Document* pDoc, diff --git a/core/fpdfdoc/cpvt_generateap.h b/core/fpdfdoc/cpvt_generateap.h index 31962e237b..6f63b10fbc 100644 --- a/core/fpdfdoc/cpvt_generateap.h +++ b/core/fpdfdoc/cpvt_generateap.h @@ -11,7 +11,6 @@ #include "core/fpdfdoc/cpdf_defaultappearance.h" #include "core/fpdfdoc/cpdf_variabletext.h" -#include "core/fpdfdoc/cpvt_dash.h" #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/fx_system.h" @@ -19,6 +18,7 @@ class CPDF_Dictionary; class CPDF_Document; +struct CPVT_Dash; class IPVT_FontMap; struct CPVT_WordRange; -- cgit v1.2.3