summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-10-03 18:16:32 +0300
committerTor Lillqvist <tml@collabora.com>2016-10-03 18:25:04 +0300
commit3970eede36f4caca96118614c93d7348a7bd8346 (patch)
tree3749d0961ccd1556030a34ce2335f4acd086b695
parent1c1d9867b0f789b21730faf76c02d2f86fcee43c (diff)
Surely this is Linux-only code
The initial commit in 2012 even says so, and nothing has changed it since. Feel free to fix more properly by making sure this code can be called only on Linux.. Change-Id: Idb0a2b5594daa0cde7f4797b51ba3e5876170f9f
-rw-r--r--sfx2/source/dialog/bluthsnd.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/dialog/bluthsnd.cxx b/sfx2/source/dialog/bluthsnd.cxx
index 9a0e89d8ac04..ecbb4459503f 100644
--- a/sfx2/source/dialog/bluthsnd.cxx
+++ b/sfx2/source/dialog/bluthsnd.cxx
@@ -38,6 +38,9 @@ SfxBluetoothModel::SendMailResult SfxBluetoothModel::SaveAndSend( const css::uno
SfxBluetoothModel::SendMailResult SfxBluetoothModel::Send( const css::uno::Reference< css::frame::XFrame >& /*xFrame*/ )
{
+#ifndef LINUX
+ return SEND_MAIL_ERROR;
+#else
char bthsend[300];
SendMailResult eResult = SEND_MAIL_OK;
OUString aFileName = maAttachedDocuments[0];
@@ -45,6 +48,7 @@ SfxBluetoothModel::SendMailResult SfxBluetoothModel::Send( const css::uno::Refer
if( !system( bthsend ) )
eResult = SEND_MAIL_ERROR;
return eResult;
+#endif
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */