From 91dfb4712d26e6d4b0989b7187034425fd6b3279 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 11 Jan 2017 13:37:51 +0100 Subject: loplugin:externvar (clang-cl) Change-Id: I7219f2e720b7c1581c59cefe39e152c5aa20a8fe --- dtrans/source/win32/dnd/globals.hxx | 9 +++++++++ dtrans/source/win32/dnd/source.cxx | 2 -- dtrans/source/win32/dnd/target.cxx | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'dtrans') diff --git a/dtrans/source/win32/dnd/globals.hxx b/dtrans/source/win32/dnd/globals.hxx index a6f01d9b5a0d..d8763189d3b3 100644 --- a/dtrans/source/win32/dnd/globals.hxx +++ b/dtrans/source/win32/dnd/globals.hxx @@ -19,8 +19,15 @@ #ifndef INCLUDED_DTRANS_SOURCE_WIN32_DND_GLOBALS_HXX #define INCLUDED_DTRANS_SOURCE_WIN32_DND_GLOBALS_HXX +#include + +#include #include +namespace com { namespace sun { namespace star { namespace datatransfer { + class XTransferable; +} } } } + #if defined _MSC_VER #pragma warning(push,1) #endif @@ -75,6 +82,8 @@ struct MutexDummy osl::Mutex m_mutex; }; +extern css::uno::Reference g_XTransferable; + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx index 7bf94f8b8000..85eb0d8c0d9f 100644 --- a/dtrans/source/win32/dnd/source.cxx +++ b/dtrans/source/win32/dnd/source.cxx @@ -53,8 +53,6 @@ using namespace com::sun::star::awt::MouseButton; using namespace com::sun::star::awt; using namespace com::sun::star::lang; -extern Reference< XTransferable > g_XTransferable; - unsigned __stdcall DndOleSTAFunc(LPVOID pParams); DragSource::DragSource( const Reference& rxContext): diff --git a/dtrans/source/win32/dnd/target.cxx b/dtrans/source/win32/dnd/target.cxx index 5f2dea68d5a1..a9f6ae477226 100644 --- a/dtrans/source/win32/dnd/target.cxx +++ b/dtrans/source/win32/dnd/target.cxx @@ -41,7 +41,6 @@ using namespace com::sun::star::datatransfer::dnd::DNDConstants; #define WM_REGISTERDRAGDROP WM_USER + 1 #define WM_REVOKEDRAGDROP WM_USER + 2 -extern Reference< XTransferable > g_XTransferable; DWORD WINAPI DndTargetOleSTAFunc(LPVOID pParams); -- cgit