extensions/source/propctrlr/formgeometryhandler.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit a5fd75485f9ab6bc22f12d4a6ca907dd6a33c278
Author:     Julien Nabet <[email protected]>
AuthorDate: Tue Dec 26 17:38:43 2023 +0100
Commit:     Julien Nabet <[email protected]>
CommitDate: Tue Dec 26 21:31:20 2023 +0100

    Use emplace_back instead of push_back (extensions part2)
    
    Change-Id: Ib86f85e6162639d229443cb3026c355c6a659932
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161306
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <[email protected]>

diff --git a/extensions/source/propctrlr/formgeometryhandler.cxx 
b/extensions/source/propctrlr/formgeometryhandler.cxx
index da31294d1b5c..b07cd7eb145e 100644
--- a/extensions/source/propctrlr/formgeometryhandler.cxx
+++ b/extensions/source/propctrlr/formgeometryhandler.cxx
@@ -739,22 +739,22 @@ namespace pcr
         if ( _event.PropertyName == "Position" )
         {
             css::awt::Point aPos = m_xShape->getPosition();
-            aEventTranslations.push_back( EventTranslation( 
PROPERTY_POSITIONX, Any( aPos.X ) ) );
-            aEventTranslations.push_back( EventTranslation( 
PROPERTY_POSITIONY, Any( aPos.Y ) ) );
+            aEventTranslations.emplace_back(PROPERTY_POSITIONX, Any( aPos.X ));
+            aEventTranslations.emplace_back(PROPERTY_POSITIONY, Any( aPos.Y ));
         }
         else if ( _event.PropertyName == "Size" )
         {
             css::awt::Size aSize = m_xShape->getSize();
-            aEventTranslations.push_back( EventTranslation( PROPERTY_WIDTH, 
Any( aSize.Width ) ) );
-            aEventTranslations.push_back( EventTranslation( PROPERTY_HEIGHT, 
Any( aSize.Height ) ) );
+            aEventTranslations.emplace_back(PROPERTY_WIDTH, Any( aSize.Width 
));
+            aEventTranslations.emplace_back(PROPERTY_HEIGHT, Any( aSize.Height 
));
         }
         else if ( _event.PropertyName == PROPERTY_ANCHOR_TYPE )
         {
-            aEventTranslations.push_back( EventTranslation( 
PROPERTY_TEXT_ANCHOR_TYPE, _event.NewValue ) );
+            aEventTranslations.emplace_back(PROPERTY_TEXT_ANCHOR_TYPE, 
_event.NewValue);
         }
         else if ( _event.PropertyName == PROPERTY_ANCHOR )
         {
-            aEventTranslations.push_back( EventTranslation( 
PROPERTY_SHEET_ANCHOR_TYPE, _event.NewValue ) );
+            aEventTranslations.emplace_back(PROPERTY_SHEET_ANCHOR_TYPE, 
_event.NewValue);
         }
 
         PropertyChangeEvent aTranslatedEvent( _event );

Reply via email to