diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 14:22:53 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-31 12:56:38 +0000 |
commit | 3c971162b57bb042dc001f775b8e20ec37ecbef8 (patch) | |
tree | 49c14944b816284c05a3d20897b92a2e2a1fd2ad /dtrans/source | |
parent | 4530451d40470bf5359645de0c142ddf9dc329b6 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I150f213ab033f5fc1b50abe4e1529292206c9feb
Reviewed-on: https://gerrit.libreoffice.org/19689
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dtrans/source')
-rw-r--r-- | dtrans/source/test/test_dtrans.cxx | 2 | ||||
-rw-r--r-- | dtrans/source/win32/dnd/sourcecontext.cxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dnd/target.cxx | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/dtrans/source/test/test_dtrans.cxx b/dtrans/source/test/test_dtrans.cxx index 2787f93feb2a..b81b3b6c8272 100644 --- a/dtrans/source/test/test_dtrans.cxx +++ b/dtrans/source/test/test_dtrans.cxx @@ -137,7 +137,7 @@ void SAL_CALL ClipboardListener::changedContents( const ClipboardEvent& event ) throw(RuntimeException) { m_nReceivedChangedContentsEvents++; - m_xClipboard = Reference< XClipboard > (event.Source, UNO_QUERY); + m_xClipboard.set(event.Source, UNO_QUERY); m_xTransferable = event.Contents; } diff --git a/dtrans/source/win32/dnd/sourcecontext.cxx b/dtrans/source/win32/dnd/sourcecontext.cxx index cee6c98bb4c2..84e54da21cfc 100644 --- a/dtrans/source/win32/dnd/sourcecontext.cxx +++ b/dtrans/source/win32/dnd/sourcecontext.cxx @@ -92,7 +92,7 @@ void SourceContext::fire_dragDropEnd( sal_Bool success, sal_Int8 effect) } e.DragSource= m_dragSource; e.DragSourceContext= static_cast<XDragSourceContext*>( this); - e.Source= Reference<XInterface>( static_cast<XDragSourceContext*>( this), UNO_QUERY); + e.Source.set( static_cast<XDragSourceContext*>( this), UNO_QUERY); OInterfaceContainerHelper* pContainer= rBHelper.getContainer( cppu::UnoType<XDragSourceListener>::get()); @@ -119,7 +119,7 @@ void SourceContext::fire_dropActionChanged( sal_Int8 dropAction, sal_Int8 userAc e.UserAction= userAction; e.DragSource= m_dragSource; e.DragSourceContext= static_cast<XDragSourceContext*>( this); - e.Source= Reference<XInterface>( static_cast<XDragSourceContext*>( this), UNO_QUERY); + e.Source.set( static_cast<XDragSourceContext*>( this), UNO_QUERY); OInterfaceContainerHelper* pContainer= rBHelper.getContainer( cppu::UnoType<XDragSourceListener>::get()); diff --git a/dtrans/source/win32/dnd/target.cxx b/dtrans/source/win32/dnd/target.cxx index bc5b6490eee7..d7247f9fc297 100644 --- a/dtrans/source/win32/dnd/target.cxx +++ b/dtrans/source/win32/dnd/target.cxx @@ -334,7 +334,7 @@ HRESULT DropTarget::DragEnter( IDataObject *pDataObj, DropTargetDragEnterEvent e; e.SupportedDataFlavors= m_currentData->getTransferDataFlavors(); e.DropAction= m_nCurrentDropAction; - e.Source= Reference<XInterface>( static_cast<XDropTarget*>(this),UNO_QUERY); + e.Source.set( static_cast<XDropTarget*>(this),UNO_QUERY); e.Context= m_currentDragContext; POINT point={ pt.x, pt.y}; ScreenToClient( m_hWnd, &point); @@ -373,7 +373,7 @@ HRESULT DropTarget::DragOver( DWORD grfKeyState, { DropTargetDragEvent e; e.DropAction= m_nCurrentDropAction; - e.Source= Reference<XInterface>(static_cast<XDropTarget*>(this),UNO_QUERY); + e.Source.set(static_cast<XDropTarget*>(this),UNO_QUERY); e.Context= m_currentDragContext; POINT point={ pt.x, pt.y}; ScreenToClient( m_hWnd, &point); @@ -456,7 +456,7 @@ HRESULT DropTarget::Drop( IDataObject * /*pDataObj*/, { DropTargetDropEvent e; e.DropAction= m_nCurrentDropAction; - e.Source= Reference<XInterface>( static_cast<XDropTarget*>(this), UNO_QUERY); + e.Source.set( static_cast<XDropTarget*>(this), UNO_QUERY); e.Context= m_currentDropContext; POINT point={ pt.x, pt.y}; ScreenToClient( m_hWnd, &point); |