summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dbui/dbtree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/dbui/dbtree.cxx')
-rw-r--r--sw/source/uibase/dbui/dbtree.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx
index cc8435b37dbb..c7ac900b50db 100644
--- a/sw/source/uibase/dbui/dbtree.cxx
+++ b/sw/source/uibase/dbui/dbtree.cxx
@@ -447,8 +447,7 @@ void SwDBTreeList::StartDrag( sal_Int8 /*nAction*/, const Point& /*rPosPixel*/ )
OUString sDBName( GetDBName( sTableName, sColumnName ));
if (!sDBName.isEmpty())
{
- TransferDataContainer* pContainer = new TransferDataContainer;
- css::uno::Reference< css::datatransfer::XTransferable > xRef( pContainer );
+ rtl::Reference<TransferDataContainer> pContainer = new TransferDataContainer;
if( !sColumnName.isEmpty() )
{
// drag database field
@@ -457,7 +456,7 @@ void SwDBTreeList::StartDrag( sal_Int8 /*nAction*/, const Point& /*rPosPixel*/ )
sTableName,
sColumnName,
(ColumnTransferFormatFlags::FIELD_DESCRIPTOR|ColumnTransferFormatFlags::COLUMN_DESCRIPTOR) ) );
- xColTransfer->addDataToContainer( pContainer );
+ xColTransfer->addDataToContainer( pContainer.get() );
}
sDBName += "." + sTableName;