diff options
author | tsepez <tsepez@chromium.org> | 2016-11-02 14:37:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-02 14:37:55 -0700 |
commit | 4cf551577856f89103e162edc761def44ffb96fc (patch) | |
tree | 452684db6c2dd2b9aa697415ff4b752e59123b77 /fpdfsdk/javascript/Annot.cpp | |
parent | 66bd67023f747c489d7144aaf4ca6222c686cd26 (diff) | |
download | pdfium-4cf551577856f89103e162edc761def44ffb96fc.tar.xz |
Remove FX_BOOL from fpdfsdk.
Review-Url: https://codereview.chromium.org/2453683011
Diffstat (limited to 'fpdfsdk/javascript/Annot.cpp')
-rw-r--r-- | fpdfsdk/javascript/Annot.cpp | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/fpdfsdk/javascript/Annot.cpp b/fpdfsdk/javascript/Annot.cpp index 8e6a775dcd..0c16b3b05a 100644 --- a/fpdfsdk/javascript/Annot.cpp +++ b/fpdfsdk/javascript/Annot.cpp @@ -37,17 +37,15 @@ Annot::Annot(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject) {} Annot::~Annot() {} -FX_BOOL Annot::hidden(IJS_Context* cc, - CJS_PropValue& vp, - CFX_WideString& sError) { +bool Annot::hidden(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { CPDFSDK_BAAnnot* baAnnot = ToBAAnnot(m_pAnnot.Get()); if (!baAnnot) - return FALSE; + return false; if (vp.IsGetting()) { CPDF_Annot* pPDFAnnot = baAnnot->GetPDFAnnot(); vp << CPDF_Annot::IsAnnotationHidden(pPDFAnnot->GetAnnotDict()); - return TRUE; + return true; } bool bHidden; @@ -66,41 +64,37 @@ FX_BOOL Annot::hidden(IJS_Context* cc, flags |= ANNOTFLAG_PRINT; } baAnnot->SetFlags(flags); - return TRUE; + return true; } -FX_BOOL Annot::name(IJS_Context* cc, - CJS_PropValue& vp, - CFX_WideString& sError) { +bool Annot::name(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { CPDFSDK_BAAnnot* baAnnot = ToBAAnnot(m_pAnnot.Get()); if (!baAnnot) - return FALSE; + return false; if (vp.IsGetting()) { vp << baAnnot->GetAnnotName(); - return TRUE; + return true; } CFX_WideString annotName; vp >> annotName; baAnnot->SetAnnotName(annotName); - return TRUE; + return true; } -FX_BOOL Annot::type(IJS_Context* cc, - CJS_PropValue& vp, - CFX_WideString& sError) { +bool Annot::type(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { if (vp.IsSetting()) { sError = JSGetStringFromID(IDS_STRING_JSREADONLY); - return FALSE; + return false; } CPDFSDK_BAAnnot* baAnnot = ToBAAnnot(m_pAnnot.Get()); if (!baAnnot) - return FALSE; + return false; vp << CPDF_Annot::AnnotSubtypeToString(baAnnot->GetAnnotSubtype()); - return TRUE; + return true; } void Annot::SetSDKAnnot(CPDFSDK_BAAnnot* annot) { |