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

Unified Diff: fpdfsdk/javascript/JS_GlobalData.cpp

Issue 2034253003: Fix more code which has shadow variables (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 6 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/JS_GlobalData.cpp
diff --git a/fpdfsdk/javascript/JS_GlobalData.cpp b/fpdfsdk/javascript/JS_GlobalData.cpp
index 8f7810f111f0af0256ce27b2bb7d342040632d72..c3025f606d39e11c23fb182c20804c8a1128d344 100644
--- a/fpdfsdk/javascript/JS_GlobalData.cpp
+++ b/fpdfsdk/javascript/JS_GlobalData.cpp
@@ -61,21 +61,21 @@ void CJS_GlobalVariableArray::Copy(const CJS_GlobalVariableArray& array) {
}
void CJS_GlobalVariableArray::Add(CJS_KeyValue* p) {
- array.Add(p);
+ m_array.Add(p);
}
int CJS_GlobalVariableArray::Count() const {
- return array.GetSize();
+ return m_array.GetSize();
}
CJS_KeyValue* CJS_GlobalVariableArray::GetAt(int index) const {
- return array.GetAt(index);
+ return m_array.GetAt(index);
}
void CJS_GlobalVariableArray::Empty() {
- for (int i = 0, sz = array.GetSize(); i < sz; i++)
- delete array.GetAt(i);
- array.RemoveAll();
+ for (int i = 0, sz = m_array.GetSize(); i < sz; i++)
+ delete m_array.GetAt(i);
+ m_array.RemoveAll();
}
#define READER_JS_GLOBALDATA_FILENAME L"Reader_JsGlobal.Data"

Powered by Google App Engine
This is Rietveld 408576698