diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-06-29 11:05:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-06-29 11:08:25 +0300 |
commit | 277bcdf1d1b5bb6a172de7f9f9a7fe77c75e2e49 (patch) | |
tree | de1a3013fd3ed59b3730b39eb419e5f593c639c9 /vcl | |
parent | 04c2f370fa894315780d3f838e22e2e4c9479168 (diff) |
Get rid of some repetitive warnings about unimplemented MetaActionTypes
Change-Id: I79b11918a7d1fd9d47dcf2f14f27924ab739c21f
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/wmf/emfwr.cxx | 8 | ||||
-rw-r--r-- | vcl/source/filter/wmf/wmfwr.cxx | 33 |
2 files changed, 5 insertions, 36 deletions
diff --git a/vcl/source/filter/wmf/emfwr.cxx b/vcl/source/filter/wmf/emfwr.cxx index e71f14cb4937..eeacabe06f65 100644 --- a/vcl/source/filter/wmf/emfwr.cxx +++ b/vcl/source/filter/wmf/emfwr.cxx @@ -1517,15 +1517,11 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf ) case( MetaActionType::WALLPAPER ): case( MetaActionType::TEXTLINE ): case( MetaActionType::GRADIENTEX ): - { - // !!! >>> we don't want to support these actions - } + // Explicitly ignored cases break; default: - OSL_FAIL(OStringBuffer( - "EMFWriter::ImplWriteActions: unsupported MetaAction #" ). - append(static_cast<sal_Int32>(nType)).getStr()); + // TODO: Implement more cases as necessary. Let's not bother with a warning. break; } } diff --git a/vcl/source/filter/wmf/wmfwr.cxx b/vcl/source/filter/wmf/wmfwr.cxx index 6ab45c78d925..f89b1f5e3673 100644 --- a/vcl/source/filter/wmf/wmfwr.cxx +++ b/vcl/source/filter/wmf/wmfwr.cxx @@ -1609,41 +1609,14 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF ) break; } - // Unsupported Actions - case MetaActionType::MASK: - case MetaActionType::MASKSCALE: - case MetaActionType::MASKSCALEPART: - { - OSL_FAIL( "Unsupported action: MetaMask...Action!" ); - } - break; - case MetaActionType::CLIPREGION: - break; - - case MetaActionType::ISECTREGIONCLIPREGION: - { - OSL_FAIL( "Unsupported action: MetaISectRegionClipRegionAction!" ); - } - break; - - case MetaActionType::MOVECLIPREGION: - { - OSL_FAIL( "Unsupported action: MetaMoveClipRegionAction!" ); - } - break; - case MetaActionType::TEXTLANGUAGE: - SAL_FALLTHROUGH; - case( MetaActionType::COMMENT ): // ignore + case MetaActionType::COMMENT: + // Explicitly ignored cases break; default: - { - OSL_FAIL(OStringBuffer( - "WMFWriter::WriteRecords: unsupported MetaAction #" ). - append(static_cast<sal_Int32>(pMA->GetType())).getStr()); - } + // TODO: Implement more cases as necessary. Let's not bother with a warning. break; } |