summaryrefslogtreecommitdiff
path: root/vbahelper/source/vbahelper/vbashapes.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/vbahelper/vbashapes.cxx')
-rw-r--r--vbahelper/source/vbahelper/vbashapes.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vbahelper/source/vbahelper/vbashapes.cxx b/vbahelper/source/vbahelper/vbashapes.cxx
index 18d042ad0446..6d5849e91251 100644
--- a/vbahelper/source/vbahelper/vbashapes.cxx
+++ b/vbahelper/source/vbahelper/vbashapes.cxx
@@ -80,7 +80,7 @@ void ScVbaShapes::initBaseCollection()
sal_Int32 nLen = m_xIndexAccess->getCount();
aShapes.reserve( nLen );
for ( sal_Int32 index=0; index<nLen; ++index )
- aShapes.push_back( uno::Reference< drawing::XShape >( m_xIndexAccess->getByIndex( index ) , uno::UNO_QUERY ) );
+ aShapes.emplace_back( m_xIndexAccess->getByIndex( index ) , uno::UNO_QUERY );
uno::Reference< container::XIndexAccess > xShapes( new XNamedObjectCollectionHelper< drawing::XShape >( aShapes ) );
m_xIndexAccess.set( xShapes, uno::UNO_QUERY );
m_xNameAccess.set( xShapes, uno::UNO_QUERY );