summaryrefslogtreecommitdiff
path: root/core/src/reflow
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-06-10 17:38:11 -0700
committerTom Sepez <tsepez@chromium.org>2015-06-10 17:38:11 -0700
commitca3ac5e9ffc936066267fbb1c329e5297d8e23e6 (patch)
tree986e666023ae0eec649051613d83c6c60ef3dac0 /core/src/reflow
parent0aa0e7331b3512066df3e33d6642456a0de63de7 (diff)
downloadpdfium-ca3ac5e9ffc936066267fbb1c329e5297d8e23e6.tar.xz
Merge to XFA: Remove FX_BSTR and FX_WSTR typedefs.
Nearly automatic merge + re-run script on new files. Original Review URL: https://codereview.chromium.org/1180593004. TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1174303002.
Diffstat (limited to 'core/src/reflow')
-rw-r--r--core/src/reflow/layoutprovider_taggedpdf.cpp4
-rw-r--r--core/src/reflow/layoutprovider_taggedpdf.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/reflow/layoutprovider_taggedpdf.cpp b/core/src/reflow/layoutprovider_taggedpdf.cpp
index c40c1cdb64..3893144ab2 100644
--- a/core/src/reflow/layoutprovider_taggedpdf.cpp
+++ b/core/src/reflow/layoutprovider_taggedpdf.cpp
@@ -21,7 +21,7 @@ CPDF_LayoutElement::~CPDF_LayoutElement()
}
m_ChildArray.RemoveAll();
}
-LayoutType CPDF_LayoutElement::ConvertLayoutType(FX_BSTR name)
+LayoutType CPDF_LayoutElement::ConvertLayoutType(const CFX_ByteStringC& name)
{
if(name == (const char*)("Document")) {
return LayoutDocument;
@@ -127,7 +127,7 @@ LayoutType CPDF_LayoutElement::ConvertLayoutType(FX_BSTR name)
}
CFX_ByteStringC CPDF_LayoutElement::ConvertLayoutType(LayoutType type)
{
- FX_BSTR name = "";
+ const CFX_ByteStringC& name = "";
if(type == LayoutArifact) {
return "Arifact";
} else if( type == LayoutDocument) {
diff --git a/core/src/reflow/layoutprovider_taggedpdf.h b/core/src/reflow/layoutprovider_taggedpdf.h
index 3e11f17067..fa6c994bf0 100644
--- a/core/src/reflow/layoutprovider_taggedpdf.h
+++ b/core/src/reflow/layoutprovider_taggedpdf.h
@@ -36,7 +36,7 @@ public:
CPDF_StructElement* m_pTaggedElement;
CPDF_LayoutElement* m_pParentElement;
CFX_PtrArray m_ChildArray;
- LayoutType ConvertLayoutType(FX_BSTR name);
+ LayoutType ConvertLayoutType(const CFX_ByteStringC& name);
CFX_ByteStringC ConvertLayoutType(LayoutType type);
CFX_ByteStringC ConvertLayoutAttr(LayoutAttr attr);
LayoutEnum ConvertLayoutEnum(CFX_ByteStringC Enum);