Changeset 33967 in webkit for trunk/JavaScriptCore/wtf/Vector.h
- Timestamp:
- May 21, 2008, 10:17:37 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/Vector.h
r31807 r33967 409 409 , m_buffer(size) 410 410 { 411 TypeOperations::initialize(begin(), end()); 411 if (begin()) 412 TypeOperations::initialize(begin(), end()); 412 413 } 413 414 … … 490 491 , m_buffer(size) 491 492 { 492 TypeOperations::uninitializedFill(begin(), end(), val); 493 if (begin()) 494 TypeOperations::uninitializedFill(begin(), end(), val); 493 495 } 494 496 … … 520 522 , m_buffer(other.capacity()) 521 523 { 522 TypeOperations::uninitializedCopy(other.begin(), other.end(), begin()); 524 if (begin()) 525 TypeOperations::uninitializedCopy(other.begin(), other.end(), begin()); 523 526 } 524 527 … … 529 532 , m_buffer(other.capacity()) 530 533 { 531 TypeOperations::uninitializedCopy(other.begin(), other.end(), begin()); 534 if (begin()) 535 TypeOperations::uninitializedCopy(other.begin(), other.end(), begin()); 532 536 } 533 537 … … 543 547 clear(); 544 548 reserveCapacity(other.size()); 549 if (!begin()) 550 return *this; 545 551 } 546 552 … … 564 570 clear(); 565 571 reserveCapacity(other.size()); 572 if (!begin()) 573 return *this; 566 574 } 567 575 … … 581 589 clear(); 582 590 reserveCapacity(newSize); 591 if (!begin()) 592 return; 583 593 } 584 594
Note:
See TracChangeset
for help on using the changeset viewer.