summaryrefslogtreecommitdiff
path: root/core/src/fpdftext/fpdf_text_int.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-01 22:31:56 -0700
committerLei Zhang <thestig@chromium.org>2015-10-01 22:31:56 -0700
commit028ded15d2a90b8d1c20a49648054c6b34ee039a (patch)
tree741a30d91edf32321f3988e888495a950a5d7d36 /core/src/fpdftext/fpdf_text_int.cpp
parent78b2a931e4e4ff4dc667bc358560e896601c2f50 (diff)
downloadpdfium-028ded15d2a90b8d1c20a49648054c6b34ee039a.tar.xz
XFA: remove new tests from fpdftext
This is a manual merge of 7f6b6677665588a27b9d14babc6358840454ce17 Original review: https://codereview.chromium.org/1085363003 TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1381513005 .
Diffstat (limited to 'core/src/fpdftext/fpdf_text_int.cpp')
-rw-r--r--core/src/fpdftext/fpdf_text_int.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp
index 55e997c177..b343c1d566 100644
--- a/core/src/fpdftext/fpdf_text_int.cpp
+++ b/core/src/fpdftext/fpdf_text_int.cpp
@@ -84,18 +84,15 @@ CPDFText_ParseOptions::CPDFText_ParseOptions()
IPDF_TextPage* IPDF_TextPage::CreateTextPage(
const CPDF_Page* pPage,
CPDFText_ParseOptions ParserOptions) {
- CPDF_TextPage* pTextPageEx = new CPDF_TextPage(pPage, ParserOptions);
- return pTextPageEx;
+ return new CPDF_TextPage(pPage, ParserOptions);
}
IPDF_TextPage* IPDF_TextPage::CreateTextPage(const CPDF_Page* pPage,
int flags) {
- CPDF_TextPage* pTextPage = new CPDF_TextPage(pPage, flags);
- return pTextPage;
+ return new CPDF_TextPage(pPage, flags);
}
IPDF_TextPage* IPDF_TextPage::CreateTextPage(const CPDF_PageObjects* pObjs,
int flags) {
- CPDF_TextPage* pTextPage = new CPDF_TextPage(pObjs, flags);
- return pTextPage;
+ return new CPDF_TextPage(pObjs, flags);
}
IPDF_TextPageFind* IPDF_TextPageFind::CreatePageFind(
const IPDF_TextPage* pTextPage) {
@@ -2736,11 +2733,7 @@ FX_BOOL CPDF_LinkExtract::CheckMailLink(CFX_WideString& str) {
FX_BOOL CPDF_LinkExtract::AppendToLinkList(int start,
int count,
const CFX_WideString& strUrl) {
- CPDF_LinkExt* linkInfo = NULL;
- linkInfo = new CPDF_LinkExt;
- if (!linkInfo) {
- return FALSE;
- }
+ CPDF_LinkExt* linkInfo = new CPDF_LinkExt;
linkInfo->m_strUrl = strUrl;
linkInfo->m_Start = start;
linkInfo->m_Count = count;