diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-27 09:43:22 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-27 12:59:23 +0000 |
commit | 850a8d27ca696f18ce0c529346f8bb8505499545 (patch) | |
tree | 5641e81912760029683e1c544e01af25eee23523 /sfx2 | |
parent | 6c974272423ca19c94d8d5e182fec46836309d60 (diff) |
Convert GRAPHIC to scoped enum
Change-Id: I1fd09a729cbda00f99841532e0dd3fa66bce7bea
Reviewed-on: https://gerrit.libreoffice.org/25534
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/fileobj.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx index c56bba56fe50..1460787f94b9 100644 --- a/sfx2/source/appl/fileobj.cxx +++ b/sfx2/source/appl/fileobj.cxx @@ -141,7 +141,7 @@ bool SvFileObject::GetData( css::uno::Any & rData, } if( SotClipboardFormatId::SVXB != nFmt ) - nFmt = (bLoadError || GRAPHIC_BITMAP == aGrf.GetType()) + nFmt = (bLoadError || GraphicType::Bitmap == aGrf.GetType()) ? SotClipboardFormatId::BITMAP : SotClipboardFormatId::GDIMETAFILE; @@ -149,7 +149,7 @@ bool SvFileObject::GetData( css::uno::Any & rData, switch ( nFmt ) { case SotClipboardFormatId::SVXB: - if( GRAPHIC_NONE != aGrf.GetType() ) + if( GraphicType::NONE != aGrf.GetType() ) { aMemStm.SetVersion( SOFFICE_FILEFORMAT_50 ); WriteGraphic( aMemStm, aGrf ); |