Refactor CFX_BasicArray.
authorChris Palmer <palmer@google.com>
Wed, 23 Jul 2014 22:00:32 +0000 (15:00 -0700)
committerChris Palmer <palmer@google.com>
Wed, 23 Jul 2014 22:00:32 +0000 (15:00 -0700)
commita08cf99d066b16e4e16393efc15174193e002371
tree8199f4122d1bdb2ca7211eb817002e97e11ee251
parent141d61d1f6255923f46b6f0b97614e27c9c4dc86
Refactor CFX_BasicArray.

The |nGrowBy| argument to |SetSize| was always -1, which caused the
effective m_nGrowBy value to always be its default value: 0. So it was not
needed, and was cluttering up the logic.

BUG=384662

Check for integer overflow in CFX_BasicArray.

BUG=384662
R=bo_xu@foxitsoftware.com, rsesek@chromium.org

Review URL: https://codereview.chromium.org/415803002
core/include/fxcrt/fx_basic.h
core/src/fxcrt/extension.h
core/src/fxcrt/fx_basic_array.cpp