summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-30 22:42:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-10-01 08:57:08 +0200
commit0a478850dc29a61f36c04093f95027ac9260f0fa (patch)
tree483c6835593ddf351e4fa52fe46267a017cc7232 /dtrans
parent4c6f17f730929e630ec2412785e2f4a8964940c7 (diff)
loplugin:flatten (clang-cl, dtrans)
Change-Id: I773640d233d5a80cb31dad5a8acff4e04afeedbd Reviewed-on: https://gerrit.libreoffice.org/42976 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/win32/dtobj/XTDataObject.cxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/dtrans/source/win32/dtobj/XTDataObject.cxx b/dtrans/source/win32/dtobj/XTDataObject.cxx
index f9e681a4b399..3599f5589b52 100644
--- a/dtrans/source/win32/dtobj/XTDataObject.cxx
+++ b/dtrans/source/win32/dtobj/XTDataObject.cxx
@@ -299,18 +299,15 @@ STDMETHODIMP CXTDataObject::GetData( LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium
void SAL_CALL CXTDataObject::renderLocaleAndSetupStgMedium(
FORMATETC const & fetc, STGMEDIUM& stgmedium )
{
- if ( m_FormatRegistrar.hasSynthesizedLocale( ) )
- {
- LCID lcid = CFormatRegistrar::getSynthesizedLocale( );
- renderDataAndSetupStgMedium(
- reinterpret_cast< sal_Int8* >( &lcid ),
- fetc,
- 0,
- sizeof( LCID ),
- stgmedium );
- }
- else
+ if ( !m_FormatRegistrar.hasSynthesizedLocale( ) )
throw CInvalidFormatEtcException( DV_E_FORMATETC );
+ LCID lcid = CFormatRegistrar::getSynthesizedLocale( );
+ renderDataAndSetupStgMedium(
+ reinterpret_cast< sal_Int8* >( &lcid ),
+ fetc,
+ 0,
+ sizeof( LCID ),
+ stgmedium );
}
void SAL_CALL CXTDataObject::renderUnicodeAndSetupStgMedium(