diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-18 10:46:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-18 18:15:20 +0100 |
commit | d7602d052dd12b6764942890ea7c11247e2bd222 (patch) | |
tree | e1a0c34fdad80a0832dd00bb5b44e71e20002b9a /svx | |
parent | e98bad89ddff5bebc3f26d944c1e1be6afe2b6f2 (diff) |
convert SVX_GRAPHICFILTER constants to scoped enum
Change-Id: I220a2cfe9ea9ef2aa85e4ad8278be70c338891a5
Reviewed-on: https://gerrit.libreoffice.org/46705
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/grfflt.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/dialog/grfflt.cxx b/svx/source/dialog/grfflt.cxx index 0f9d7cbd1f0c..2d008bec558a 100644 --- a/svx/source/dialog/grfflt.cxx +++ b/svx/source/dialog/grfflt.cxx @@ -31,10 +31,10 @@ #include <memory> -sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const & rReq, GraphicObject& rFilterObject ) +SvxGraphicFilterResult SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const & rReq, GraphicObject& rFilterObject ) { const Graphic& rGraphic = rFilterObject.GetGraphic(); - sal_uIntPtr nRet = SVX_GRAPHICFILTER_UNSUPPORTED_GRAPHICTYPE; + SvxGraphicFilterResult nRet = SvxGraphicFilterResult::UnsupportedGraphicType; if( rGraphic.GetType() == GraphicType::Bitmap ) { @@ -251,14 +251,14 @@ sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const & rReq, Gra case SID_GRFFILTER : { // do nothing; no error - nRet = SVX_GRAPHICFILTER_ERRCODE_NONE; + nRet = SvxGraphicFilterResult::NONE; break; } default: { OSL_FAIL( "SvxGraphicFilter: selected filter slot not yet implemented" ); - nRet = SVX_GRAPHICFILTER_UNSUPPORTED_SLOT; + nRet = SvxGraphicFilterResult::UnsupportedSlot; } break; } @@ -266,7 +266,7 @@ sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const & rReq, Gra if( aGraphic.GetType() != GraphicType::NONE ) { rFilterObject.SetGraphic( aGraphic ); - nRet = SVX_GRAPHICFILTER_ERRCODE_NONE; + nRet = SvxGraphicFilterResult::NONE; } } |