diff options
Diffstat (limited to 'dtrans/source/win32/dnd/target.cxx')
-rw-r--r-- | dtrans/source/win32/dnd/target.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dtrans/source/win32/dnd/target.cxx b/dtrans/source/win32/dnd/target.cxx index 494119c11f57..552e3700d3d3 100644 --- a/dtrans/source/win32/dnd/target.cxx +++ b/dtrans/source/win32/dnd/target.cxx @@ -312,8 +312,7 @@ HRESULT DropTarget::DragEnter( IDataObject *pDataObj, // will be DROPEFFECT_NONE throughout m_nLastDropAction= ACTION_DEFAULT | ACTION_MOVE; - m_currentDragContext= static_cast<XDropTargetDragContext*>( new TargetDragContext( - this ) ); + m_currentDragContext = new TargetDragContext(this); //--> TRA @@ -451,7 +450,7 @@ HRESULT DropTarget::Drop( IDataObject * /*pDataObj*/, m_bDropComplete= false; m_nCurrentDropAction= getFilteredActions( grfKeyState, *pdwEffect); - m_currentDropContext= static_cast<XDropTargetDropContext*>( new TargetDropContext( this ) ); + m_currentDropContext = new TargetDropContext(this); if( m_nCurrentDropAction) { DropTargetDropEvent e; |