summaryrefslogtreecommitdiff
path: root/dtrans/test
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-30 14:22:53 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-31 12:56:38 +0000
commit3c971162b57bb042dc001f775b8e20ec37ecbef8 (patch)
tree49c14944b816284c05a3d20897b92a2e2a1fd2ad /dtrans/test
parent4530451d40470bf5359645de0c142ddf9dc329b6 (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/test')
-rw-r--r--dtrans/test/win32/dnd/atlwindow.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dtrans/test/win32/dnd/atlwindow.cxx b/dtrans/test/win32/dnd/atlwindow.cxx
index 4981e0aacf47..1f8f74843397 100644
--- a/dtrans/test/win32/dnd/atlwindow.cxx
+++ b/dtrans/test/win32/dnd/atlwindow.cxx
@@ -97,7 +97,7 @@ LRESULT AWindow::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandle
// create the DragSource
Reference< XInterface> xint= MultiServiceFactory->createInstance("com.sun.star.datatransfer.dnd.OleDragSource");
- m_xDragSource= Reference<XDragSource>( xint, UNO_QUERY);
+ m_xDragSource.set( xint, UNO_QUERY );
Reference<XInitialization> xInit( xint, UNO_QUERY);
Any ar[2];
@@ -106,7 +106,7 @@ LRESULT AWindow::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandle
//create the DropTarget
Reference< XInterface> xintTarget= MultiServiceFactory->createInstance("com.sun.star.datatransfer.dnd.OleDropTarget");
- m_xDropTarget= Reference<XDropTarget>( xintTarget, UNO_QUERY);
+ m_xDropTarget.set( xintTarget, UNO_QUERY );
Reference<XInitialization> xInitTarget( xintTarget, UNO_QUERY);
Any any;