diff options
author | weili <weili@chromium.org> | 2016-06-07 11:28:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-07 11:28:31 -0700 |
commit | 98963398054a20287cf6b354932ef56ddb4da48c (patch) | |
tree | b9a009dc12f7535e7fc798ee7e416e651272d863 /fpdfsdk/javascript/JS_GlobalData.cpp | |
parent | 4997b22f84307521a62838f874928bf56cd3423c (diff) | |
download | pdfium-98963398054a20287cf6b354932ef56ddb4da48c.tar.xz |
Fix more code which has shadow variables
The code has local variables that shadow struct or class member
variables. Also, when this happens, different variable names should be
used instead of namespaces.
These were discovered by /Wshadow warning flag in Clang.
Review-Url: https://codereview.chromium.org/2034253003
Diffstat (limited to 'fpdfsdk/javascript/JS_GlobalData.cpp')
-rw-r--r-- | fpdfsdk/javascript/JS_GlobalData.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fpdfsdk/javascript/JS_GlobalData.cpp b/fpdfsdk/javascript/JS_GlobalData.cpp index 8f7810f111..b34bf0907e 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" |