From eaba47bce44a373116b0583dc293c8c3238b7bea Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 20 May 2016 14:15:36 +0200 Subject: Convert XOUTBMP to scoped enum Change-Id: I8d10cdc78ca73d86bdc9aa08fca591f6eb85eb9e Reviewed-on: https://gerrit.libreoffice.org/25196 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/core/extedit.cxx | 2 +- svx/source/core/graphichelper.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'svx/source/core') diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx index d3b16b65a356..8ef16623fb26 100644 --- a/svx/source/core/extedit.cxx +++ b/svx/source/core/extedit.cxx @@ -138,7 +138,7 @@ void ExternalToolEdit::Edit(GraphicObject const*const pGraphicObject) OUString aFilter(rGraphicFilter.GetExportFormatShortName(nFilter)); // Write the Graphic to the file now - XOutBitmap::WriteGraphic(aGraphic, aTempFileName, aFilter, XOUTBMP_USE_NATIVE_IF_POSSIBLE | XOUTBMP_DONT_EXPAND_FILENAME); + XOutBitmap::WriteGraphic(aGraphic, aTempFileName, aFilter, XOutFlags::UseNativeIfPossible | XOutFlags::DontExpandFilename); // There is a possibility that sPath extension might have been changed if the // provided extension is not writable diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx index b051cbd36e78..4816342a7fbc 100644 --- a/svx/source/core/graphichelper.cxx +++ b/svx/source/core/graphichelper.cxx @@ -192,9 +192,9 @@ OUString GraphicHelper::ExportGraphic( const Graphic& rGraphic, const OUString& OUString aFilter( rGraphicFilter.GetExportFormatShortName( nFilter ) ); XOutBitmap::WriteGraphic( rGraphic, sPath, aFilter, - XOUTBMP_DONT_EXPAND_FILENAME | - XOUTBMP_DONT_ADD_EXTENSION | - XOUTBMP_USE_NATIVE_IF_POSSIBLE ); + XOutFlags::DontExpandFilename | + XOutFlags::DontAddExtension | + XOutFlags::UseNativeIfPossible ); return sPath; } } -- cgit v1.2.3