diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-20 14:15:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-20 21:57:36 +0200 |
commit | b15244d526c285cd109f7195855409f698d0cdc0 (patch) | |
tree | f5b36b0d2ad0c2ba94024ef742147ed320f1ca17 /cui | |
parent | 02e5afcea007365714b57e09b079ad0acca6e99d (diff) |
move SvColorDialog to welded arguments
Change-Id: Ieb04fc4684caa6df47b123ab06e280f2d204375a
Reviewed-on: https://gerrit.libreoffice.org/56162
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tpcolor.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx index 113d1f9fb8a8..724a075b22d5 100644 --- a/cui/source/tabpages/tpcolor.cxx +++ b/cui/source/tabpages/tpcolor.cxx @@ -388,14 +388,14 @@ IMPL_LINK_NOARG(SvxColorTabPage, ClickAddHdl_Impl, weld::Button&, void) IMPL_LINK_NOARG(SvxColorTabPage, ClickWorkOnHdl_Impl, weld::Button&, void) { - std::unique_ptr<SvColorDialog> pColorDlg(new SvColorDialog( GetParentDialog() )); + SvColorDialog aColorDlg; - pColorDlg->SetColor (aCurrentColor); - pColorDlg->SetMode( svtools::ColorPickerMode::Modify ); + aColorDlg.SetColor (aCurrentColor); + aColorDlg.SetMode( svtools::ColorPickerMode::Modify ); - if( pColorDlg->Execute() == RET_OK ) + if (aColorDlg.Execute(GetFrameWeld()) == RET_OK) { - Color aPreviewColor = pColorDlg->GetColor(); + Color aPreviewColor = aColorDlg.GetColor(); aCurrentColor = aPreviewColor; UpdateColorValues( false ); // fill ItemSet and pass it on to XOut |