diff options
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbaeventshelperbase.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbashapes.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx index 4fb57ff85f56..302799dc015f 100644 --- a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx +++ b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx @@ -61,7 +61,7 @@ sal_Bool SAL_CALL VbaEventsHelperBase::processVbaEvent( sal_Int32 nEventId, cons processing the original event. All unprocessed events are collected in a queue. First element in the queue is the next event to be processed. */ EventQueue aEventQueue; - aEventQueue.push_back( EventQueueEntry( nEventId, rArgs ) ); + aEventQueue.emplace_back( nEventId, rArgs ); /* bCancel will contain the current Cancel value. It is possible that multiple events will try to modify the Cancel value. Every event 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 ); |