diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-17 13:09:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-18 06:58:44 +0000 |
commit | d96c114171dada05caffd9a50f870809ebd0c450 (patch) | |
tree | 2ef1572fce732c39557b3f2f944aef86f17aa703 /sw/source/uibase/frmdlg | |
parent | 70aa5799336de6cbd1d964e2e9a176b44d438db2 (diff) |
clang-tidy modernize-make-shared
Change-Id: I3fa866bfb3093fc876474a9d9db29fe05dc2af3a
Reviewed-on: https://gerrit.libreoffice.org/25056
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/frmdlg')
-rw-r--r-- | sw/source/uibase/frmdlg/colex.cxx | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/sw/source/uibase/frmdlg/colex.cxx b/sw/source/uibase/frmdlg/colex.cxx index 0da911b0ae84..4a42b146c3ad 100644 --- a/sw/source/uibase/frmdlg/colex.cxx +++ b/sw/source/uibase/frmdlg/colex.cxx @@ -135,9 +135,8 @@ void SwPageExample::UpdateExample( const SfxItemSet& rSet ) setSvxBrushItemAsFillAttributesToTargetSet(rItem, aTempSet); setHeaderFillAttributes( - drawinglayer::attribute::SdrAllFillAttributesHelperPtr( - new drawinglayer::attribute::SdrAllFillAttributesHelper( - aTempSet))); + std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>( + aTempSet)); } if ( rHeaderSet.GetItemState( RES_BOX ) == SfxItemState::SET ) @@ -182,9 +181,8 @@ void SwPageExample::UpdateExample( const SfxItemSet& rSet ) setSvxBrushItemAsFillAttributesToTargetSet(rItem, aTempSet); setFooterFillAttributes( - drawinglayer::attribute::SdrAllFillAttributesHelperPtr( - new drawinglayer::attribute::SdrAllFillAttributesHelper( - aTempSet))); + std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>( + aTempSet)); } if( rFooterSet.GetItemState( RES_BOX ) == SfxItemState::SET ) @@ -206,9 +204,8 @@ void SwPageExample::UpdateExample( const SfxItemSet& rSet ) setSvxBrushItemAsFillAttributesToTargetSet(rItem, aTempSet); setPageFillAttributes( - drawinglayer::attribute::SdrAllFillAttributesHelperPtr( - new drawinglayer::attribute::SdrAllFillAttributesHelper( - aTempSet))); + std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>( + aTempSet)); } Invalidate(); @@ -255,8 +252,8 @@ void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOr const Color& rFieldColor = rStyleSettings.GetFieldColor(); setPageFillAttributes( - drawinglayer::attribute::SdrAllFillAttributesHelperPtr( - new drawinglayer::attribute::SdrAllFillAttributesHelper(rFieldColor))); + std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>( + rFieldColor)); } // #97495# make sure that the automatic column width's are always equal |