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

Unified Diff: fpdfsdk/javascript/app.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/app.cpp
diff --git a/fpdfsdk/javascript/app.cpp b/fpdfsdk/javascript/app.cpp
index 83836759d763a946616bacbc8b8bab59de23fcf3..86c9979b1ee6b53e46d7d31859c24a2ccaa8c7f7 100644
--- a/fpdfsdk/javascript/app.cpp
+++ b/fpdfsdk/javascript/app.cpp
@@ -296,7 +296,7 @@ FX_BOOL app::alert(IJS_Context* cc,
for (int i = 0; i < carray.GetLength(); ++i) {
if (i)
swMsg += L", ";
- carray.GetElement(i, element);
+ carray.GetObjectBy(i, element);
swMsg += element.ToCFXWideString();
}
swMsg += L"]";

Powered by Google App Engine
This is Rietveld 408576698