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

Unified Diff: fpdfsdk/javascript/PublicMethods.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/javascript/PublicMethods.cpp
diff --git a/fpdfsdk/javascript/PublicMethods.cpp b/fpdfsdk/javascript/PublicMethods.cpp
index a4c13564c813d74348f6bbdadb6372589d705943..288c6771d8556b2549cf2200aa2e705c74605a11 100644
--- a/fpdfsdk/javascript/PublicMethods.cpp
+++ b/fpdfsdk/javascript/PublicMethods.cpp
@@ -1722,7 +1722,7 @@ FX_BOOL CJS_PublicMethods::AFSimple_Calculate(
for (int i = 0, isz = FieldNameArray.GetLength(); i < isz; i++) {
CJS_Value jsValue(pRuntime);
- FieldNameArray.GetElement(i, jsValue);
+ FieldNameArray.GetObjectBy(i, jsValue);
CFX_WideString wsFieldName = jsValue.ToCFXWideString();
for (int j = 0, jsz = pInterForm->CountFields(wsFieldName); j < jsz; j++) {

Powered by Google App Engine
This is Rietveld 408576698