summaryrefslogtreecommitdiff
path: root/svx/source/dialog/orienthelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-13 11:04:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-13 12:15:22 +0200
commit0e3911478349349fb59dcc52cb5f5419fbdc7c0e (patch)
tree424a40df51a25c32f24b8d1108bb2333f81ea760 /svx/source/dialog/orienthelper.cxx
parent39f4a8a60b0d0d2075369adf750f159bf73b0fa3 (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/dialog/orienthelper.cxx')
-rw-r--r--svx/source/dialog/orienthelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/orienthelper.cxx b/svx/source/dialog/orienthelper.cxx
index e969cc272fa9..01180a7494e1 100644
--- a/svx/source/dialog/orienthelper.cxx
+++ b/svx/source/dialog/orienthelper.cxx
@@ -58,14 +58,14 @@ OrientationHelper_Impl::OrientationHelper_Impl( DialControl& rCtrlDial, CheckBox
mbEnabled( rCtrlDial.IsEnabled() ),
mbVisible( rCtrlDial.IsVisible() )
{
- maWinVec.push_back( WindowPair( &mrCtrlDial, TRISTATE_TRUE ) );
- maWinVec.push_back( WindowPair( &mrCbStacked, TRISTATE_INDET ) );
+ maWinVec.emplace_back( &mrCtrlDial, TRISTATE_TRUE );
+ maWinVec.emplace_back( &mrCbStacked, TRISTATE_INDET );
mrCbStacked.SetClickHdl( LINK( this, OrientationHelper_Impl, ClickHdl ) );
}
void OrientationHelper_Impl::AddDependentWindow( vcl::Window& rWindow, TriState eDisableIfStacked )
{
- maWinVec.push_back( std::make_pair( &rWindow, eDisableIfStacked ) );
+ maWinVec.emplace_back( &rWindow, eDisableIfStacked );
EnableWindow( rWindow, eDisableIfStacked );
}