summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-19 10:20:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-19 13:06:27 +0100
commit1d467df12391ae7d1f56ef0cebc6c3c74fea0800 (patch)
tree2f71adc03810e480198218c64d2fb51ed24e8e78 /svl
parentdaf71f32cbcee891d3b9b12029b8684e9fc4e1c6 (diff)
svl/source/svdde/ddedata.cxx is only compiled on Windows anyway
(cf. svl/Library_svl.mk) Change-Id: Iff41c9c56c1e0ca52ea93268ddfa76b6630d2eb4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106124 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/svdde/ddedata.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/svl/source/svdde/ddedata.cxx b/svl/source/svdde/ddedata.cxx
index cbea590c0658..7cf9c0b1daa6 100644
--- a/svl/source/svdde/ddedata.cxx
+++ b/svl/source/svdde/ddedata.cxx
@@ -133,11 +133,9 @@ sal_uLong DdeData::GetExternalFormat(SotClipboardFormatId nFmt)
return CF_METAFILEPICT;
default:
{
-#if defined(_WIN32)
OUString aName( SotExchange::GetFormatName( nFmt ) );
if( !aName.isEmpty() )
return RegisterClipboardFormatW( o3tl::toW(aName.getStr()) );
-#endif
}
}
return static_cast<sal_uLong>(nFmt);
@@ -154,7 +152,6 @@ SotClipboardFormatId DdeData::GetInternalFormat(sal_uLong nFmt)
case CF_METAFILEPICT:
return SotClipboardFormatId::GDIMETAFILE;
default:
-#if defined(_WIN32)
if( nFmt >= CF_MAX )
{
WCHAR szName[ 256 ];
@@ -162,7 +159,6 @@ SotClipboardFormatId DdeData::GetInternalFormat(sal_uLong nFmt)
if(GetClipboardFormatNameW( nFmt, szName, SAL_N_ELEMENTS(szName) ))
return SotExchange::RegisterFormatName( OUString(o3tl::toU(szName)) );
}
-#endif
break;
}
return static_cast<SotClipboardFormatId>(nFmt);