diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-05-03 20:13:35 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-05-04 04:49:33 +0000 |
commit | ecdbaf99a11b8c42632e6cb9786d68464aacc7ec (patch) | |
tree | b4bf3288d6a162c6727f58b3751c17f4881880f8 /header.LGPL-NOGPL2 | |
parent | e28ae083d2ba69406bf444f951b6c820c5aaf4f4 (diff) |
QContiguousCache: add assertion to avoid negative capacity
The ctor of QContiguousCache and setCapacity are accepting negative
values for the capacity. While this should not be done it can happen by
accident. Therefore add Q_ASSERT to ensure a positive value.
Task-number: QTBUG-19700
Change-Id: I7458100c07c687cdeaebe86400343d79b5a6330a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'header.LGPL-NOGPL2')
0 files changed, 0 insertions, 0 deletions