diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-15 15:13:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-18 07:14:19 +0100 |
commit | 0045ee9b7f028dba5f9a3cad43125c9154169ef0 (patch) | |
tree | f02b7c0377175fb1dd02463e312b489ea5437db1 /svtools/source | |
parent | 65102921c710651bc11cf357878bd0af76d2dd78 (diff) |
convert ColorPickerMode to scoped enum
and drop unused Add constant
Change-Id: I4e4f0d35e4d081883b78e0205ffd7086c9cadf04
Reviewed-on: https://gerrit.libreoffice.org/46587
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/dialogs/colrdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/dialogs/colrdlg.cxx b/svtools/source/dialogs/colrdlg.cxx index be1ceb111af6..a0d4af23f78f 100644 --- a/svtools/source/dialogs/colrdlg.cxx +++ b/svtools/source/dialogs/colrdlg.cxx @@ -39,7 +39,7 @@ using namespace ::com::sun::star::ui::dialogs; SvColorDialog::SvColorDialog( vcl::Window* pWindow ) : mpParent( pWindow ) -, meMode( svtools::ColorPickerMode_SELECT ) +, meMode( svtools::ColorPickerMode::Select ) { } @@ -53,7 +53,7 @@ void SvColorDialog::SetColor( const Color& rColor ) } -void SvColorDialog::SetMode( sal_Int16 eMode ) +void SvColorDialog::SetMode( svtools::ColorPickerMode eMode ) { meMode = eMode; } @@ -76,7 +76,7 @@ short SvColorDialog::Execute() props[0].Name = sColor; props[0].Value <<= (sal_Int32) maColor.GetColor(); props[1].Name = "Mode"; - props[1].Value <<= meMode; + props[1].Value <<= static_cast<sal_Int16>(meMode); xPropertyAccess->setPropertyValues( props ); |