Fixed mix-up between resize and reserve.

This commit is contained in:
Vincent Richard 2014-01-10 22:23:48 +01:00
parent 426ea685ae
commit 78cc6e5de1

View File

@ -672,7 +672,7 @@ shared_ptr <folderStatus> POP3Folder::getStatus()
if (count > oldCount)
{
std::vector <int> nums;
nums.reserve(count - oldCount);
nums.resize(count - oldCount);
for (int i = oldCount + 1, j = 0 ; i <= count ; ++i, ++j)
nums[j] = i;