diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-13 11:04:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-13 12:15:22 +0200 |
commit | 0e3911478349349fb59dcc52cb5f5419fbdc7c0e (patch) | |
tree | 424a40df51a25c32f24b8d1108bb2333f81ea760 /svx/source/accessibility | |
parent | 39f4a8a60b0d0d2075369adf750f159bf73b0fa3 (diff) |
clang-tidy modernize-use-emplace in svx
Change-Id: I52f062bf0b4c1af44576546d0593699758d71084
Reviewed-on: https://gerrit.libreoffice.org/42232
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx index c4b72ffd70ff..7cf63fdf7f49 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.cxx +++ b/svx/source/accessibility/ChildrenManagerImpl.cxx @@ -298,7 +298,7 @@ void ChildrenManagerImpl::CreateListOfVisibleShapes ( // bounding box has non-zero extensions. awt::Rectangle aPixelBBox (xComponent->getBounds()); if ((aPixelBBox.Width > 0) && (aPixelBBox.Height > 0)) - raDescriptorList.push_back (ChildDescriptor (*I)); + raDescriptorList.emplace_back(*I); } } } @@ -327,7 +327,7 @@ void ChildrenManagerImpl::CreateListOfVisibleShapes ( // Insert shape if it is visible, i.e. its bounding box overlaps // the visible area. if ( aBoundingBox.IsOver (aVisibleArea) ) - raDescriptorList.push_back (ChildDescriptor (xShape)); + raDescriptorList.emplace_back(xShape); } } } @@ -456,7 +456,7 @@ void ChildrenManagerImpl::AddShape (const Reference<drawing::XShape>& rxShape) if (aBoundingBox.IsOver (aVisibleArea)) { // Add shape to list of visible shapes. - maVisibleChildren.push_back (ChildDescriptor (rxShape)); + maVisibleChildren.emplace_back(rxShape); // Create accessibility object. ChildDescriptor& rDescriptor = maVisibleChildren.back(); @@ -883,7 +883,7 @@ void ChildrenManagerImpl::UpdateSelection() { if (bDrawShape) { - vecSelect.push_back(std::make_pair(pAccessibleShape,true)); + vecSelect.emplace_back(pAccessibleShape,true); ++nAddSelect; } } @@ -899,7 +899,7 @@ void ChildrenManagerImpl::UpdateSelection() { if(bDrawShape) { - vecSelect.push_back(std::make_pair(pAccessibleShape,false)); + vecSelect.emplace_back(pAccessibleShape,false); } } } |