summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/include
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-15 14:32:49 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-15 14:32:49 -0700
commite0ad6a4af5d9c5f5671a9ecd0aa437dedae52b16 (patch)
tree9d620999954853fe7512db8e699cf77537c3ba05 /core/fpdfdoc/include
parent7cf555202756c51ce2b5ae18efdeb6e1bb6a9e41 (diff)
downloadpdfium-e0ad6a4af5d9c5f5671a9ecd0aa437dedae52b16.tar.xz
Avoid narrowing to StringC in CPDF_Name and CPDF_NameTree
Remove redundant CPDF_Name constructors given promotion rules. Rework one char* in CPDF_PageContentGenerator. Review URL: https://codereview.chromium.org/1890973006
Diffstat (limited to 'core/fpdfdoc/include')
-rw-r--r--core/fpdfdoc/include/fpdf_doc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fpdfdoc/include/fpdf_doc.h b/core/fpdfdoc/include/fpdf_doc.h
index b8bc56b0cc..c11bf43c4e 100644
--- a/core/fpdfdoc/include/fpdf_doc.h
+++ b/core/fpdfdoc/include/fpdf_doc.h
@@ -51,12 +51,11 @@ class CFX_RenderDevice;
class CPDF_NameTree {
public:
explicit CPDF_NameTree(CPDF_Dictionary* pRoot) : m_pRoot(pRoot) {}
- CPDF_NameTree(CPDF_Document* pDoc, const CFX_ByteStringC& category);
+ CPDF_NameTree(CPDF_Document* pDoc, const CFX_ByteString& category);
CPDF_Object* LookupValue(int nIndex, CFX_ByteString& csName) const;
CPDF_Object* LookupValue(const CFX_ByteString& csName) const;
- CPDF_Array* LookupNamedDest(CPDF_Document* pDoc,
- const CFX_ByteStringC& sName);
+ CPDF_Array* LookupNamedDest(CPDF_Document* pDoc, const CFX_ByteString& sName);
int GetIndex(const CFX_ByteString& csName) const;
size_t GetCount() const;
CPDF_Dictionary* GetRoot() const { return m_pRoot; }