Index: core/src/fpdftext/fpdf_text_int.cpp |
diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp |
index 70178a54b0a875086bcc3578f7cd4412e0c870f5..2b9a079006d60c64dc91b273f75f656b19b69876 100644 |
--- a/core/src/fpdftext/fpdf_text_int.cpp |
+++ b/core/src/fpdftext/fpdf_text_int.cpp |
@@ -81,29 +81,26 @@ CPDFText_ParseOptions::CPDFText_ParseOptions() |
} |
IPDF_TextPage* IPDF_TextPage::CreateTextPage(const CPDF_Page* pPage, CPDFText_ParseOptions ParserOptions) |
{ |
- CPDF_TextPage* pTextPageEx = FX_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 = FX_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 = FX_NEW CPDF_TextPage(pObjs, flags); |
- return pTextPage; |
+ return new CPDF_TextPage(pObjs, flags); |
} |
IPDF_TextPageFind* IPDF_TextPageFind::CreatePageFind(const IPDF_TextPage* pTextPage) |
{ |
if (!pTextPage) { |
return NULL; |
} |
- return FX_NEW CPDF_TextPageFind(pTextPage); |
+ return new CPDF_TextPageFind(pTextPage); |
} |
IPDF_LinkExtract* IPDF_LinkExtract::CreateLinkExtract() |
{ |
- return FX_NEW CPDF_LinkExtract(); |
+ return new CPDF_LinkExtract(); |
} |
#define TEXT_BLANK_CHAR L' ' |
#define TEXT_LINEFEED_CHAR L'\n' |
@@ -2809,11 +2806,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 = FX_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; |