diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 11:13:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-05 11:18:41 +0200 |
commit | b37b7b5cd5a4b7acdee4736008f3947317dad4ce (patch) | |
tree | 7d07a383c81106ed9cdd48ddaff564ed0650c365 /ucb/source/ucp/gio | |
parent | f9a6e75e21e9919a405a1964d85345a1c0634067 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: Id036f867e75d03d8347cc32a1011c5cdda1dcc73
Diffstat (limited to 'ucb/source/ucp/gio')
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/gio/gio_datasupplier.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index 5fc3e8e6feef..41a5a89cf5f1 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -834,8 +834,8 @@ bool Content::feedSink( uno::Reference< uno::XInterface > xSink, if ( !xSink.is() ) return false; - uno::Reference< io::XOutputStream > xOut = uno::Reference< io::XOutputStream >(xSink, uno::UNO_QUERY ); - uno::Reference< io::XActiveDataSink > xDataSink = uno::Reference< io::XActiveDataSink >(xSink, uno::UNO_QUERY ); + uno::Reference< io::XOutputStream > xOut(xSink, uno::UNO_QUERY ); + uno::Reference< io::XActiveDataSink > xDataSink(xSink, uno::UNO_QUERY ); if ( !xOut.is() && !xDataSink.is() ) return false; diff --git a/ucb/source/ucp/gio/gio_datasupplier.cxx b/ucb/source/ucp/gio/gio_datasupplier.cxx index 02c1e11df61e..cabe44409bce 100644 --- a/ucb/source/ucp/gio/gio_datasupplier.cxx +++ b/ucb/source/ucp/gio/gio_datasupplier.cxx @@ -256,7 +256,7 @@ uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues( sal_uInt32 nInde void DataSupplier::releasePropertyValues( sal_uInt32 nIndex ) { if ( nIndex < maResults.size() ) - maResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >(); + maResults[ nIndex ]->xRow.clear(); } void DataSupplier::close() |