Fixed mix-up between resize and reserve.
This commit is contained in:
parent
426ea685ae
commit
78cc6e5de1
@ -672,7 +672,7 @@ shared_ptr <folderStatus> POP3Folder::getStatus()
|
|||||||
if (count > oldCount)
|
if (count > oldCount)
|
||||||
{
|
{
|
||||||
std::vector <int> nums;
|
std::vector <int> nums;
|
||||||
nums.reserve(count - oldCount);
|
nums.resize(count - oldCount);
|
||||||
|
|
||||||
for (int i = oldCount + 1, j = 0 ; i <= count ; ++i, ++j)
|
for (int i = oldCount + 1, j = 0 ; i <= count ; ++i, ++j)
|
||||||
nums[j] = i;
|
nums[j] = i;
|
||||||
|
Loading…
Reference in New Issue
Block a user