-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QArrayDataOps: refactor appendInitialize
Instead of a manual loop, we can use std::uninitialized_value_construct. QGenericArrayOps was using default construction, which is wrong: appendInitalize is called from resize() and similar, so it must do value initialization. Since the implementation between Pod and Generic ops is now identical, centralize it in QArrayDataPointer. Change-Id: I46c24886e1130daab79563d7f2f286ce2ba5984a Reviewed-by: Thiago Macieira <[email protected]> Reviewed-by: Fabian Kosmale <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters