summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-03 10:28:31 +0200
committerNoel Grandin <noel@peralex.com>2015-12-03 13:57:22 +0200
commit7f8c4b8445b578ec26256efd6f96e5a5b8d81f2e (patch)
tree1e9c14c05df034f622160222eaa6cf073a1aad7e /canvas
parentd40d756f4079a228035b5db346da50fe7aed0bd2 (diff)
Use comphelper::containerToSequence()
Change-Id: I18d6ef04ff00f971a4c54ba259733c07501c6c1a
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/vcl/textlayout.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/canvas/source/vcl/textlayout.cxx b/canvas/source/vcl/textlayout.cxx
index 13cf03c9cc0a..982efe88233f 100644
--- a/canvas/source/vcl/textlayout.cxx
+++ b/canvas/source/vcl/textlayout.cxx
@@ -122,7 +122,7 @@ namespace vclcanvas
::std::unique_ptr< long []> aOffsets(new long[maLogicalAdvancements.getLength()]);
setupTextOffsets(aOffsets.get(), maLogicalAdvancements, aViewState, aRenderState);
- uno::Sequence< uno::Reference< rendering::XPolyPolygon2D> > aOutlineSequence;
+ std::vector< uno::Reference< rendering::XPolyPolygon2D> > aOutlineSequence;
::basegfx::B2DPolyPolygonVector aOutlines;
if (pVDev->GetTextOutlines(
aOutlines,
@@ -134,7 +134,7 @@ namespace vclcanvas
0,
aOffsets.get()))
{
- aOutlineSequence.realloc(aOutlines.size());
+ aOutlineSequence.reserve(aOutlines.size());
sal_Int32 nIndex (0);
for (::basegfx::B2DPolyPolygonVector::const_iterator
iOutline(aOutlines.begin()),
@@ -148,7 +148,7 @@ namespace vclcanvas
}
}
- return aOutlineSequence;
+ return comphelper::containerToSequence(aOutlineSequence);
}
uno::Sequence< geometry::RealRectangle2D > SAL_CALL TextLayout::queryInkMeasures( ) throw (uno::RuntimeException, std::exception)