Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: fpdfsdk/pdfwindow/PWL_Edit.cpp

Issue 1841173002: Rename GetElementValue() to GetDirectObject{By,At}(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use "At" for arrays. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fpdfsdk/pdfwindow/PWL_Edit.cpp
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.cpp b/fpdfsdk/pdfwindow/PWL_Edit.cpp
index f53f263470ecb1234b5f8fa0cfc044946cc7a47a..15c9985af19639cdedc7d596c62677b354149fac 100644
--- a/fpdfsdk/pdfwindow/PWL_Edit.cpp
+++ b/fpdfsdk/pdfwindow/PWL_Edit.cpp
@@ -50,7 +50,7 @@ void CPWL_Edit::SetText(const FX_WCHAR* csText) {
swText.Empty();
for (int32_t i = 0; i < nCount; i++) {
- if (CXML_Element* pSubElement = pXML->GetElement(i)) {
+ if (CXML_Element* pSubElement = pXML->GetObjectBy(i)) {
CFX_ByteString tag = pSubElement->GetTagName();
if (tag.EqualNoCase("p")) {
int nChild = pSubElement->CountChildren();

Powered by Google App Engine
This is Rietveld 408576698