summaryrefslogtreecommitdiff
path: root/extensions/source/bibliography/bibload.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-30 15:20:12 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-02 06:46:53 +0000
commitdd1729f854af4f27f396d51d3c930c95d1011001 (patch)
treeb65685fee797f657a3bc950902956c3820fd5106 /extensions/source/bibliography/bibload.cxx
parent1b41208608f472df8dd5879c27dca45cc2ea7740 (diff)
use uno::Reference::set method instead of assignment
Change-Id: Ib297f2ab1c0c82703030f28d034d24f8a84a85ea Reviewed-on: https://gerrit.libreoffice.org/19732 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'extensions/source/bibliography/bibload.cxx')
-rw-r--r--extensions/source/bibliography/bibload.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx
index 2460e9639f46..78aa2a4e2dc0 100644
--- a/extensions/source/bibliography/bibload.cxx
+++ b/extensions/source/bibliography/bibload.cxx
@@ -402,7 +402,7 @@ Reference< sdb::XColumn > BibliographyLoader::GetIdentifierColumn() const
Reference< sdb::XColumn > xReturn;
if (xColumns.is() && xColumns->hasByName(sIdentifierColumnName))
{
- xReturn = Reference< XColumn > (*static_cast<Reference< XInterface > const *>(
+ xReturn.set(*static_cast<Reference< XInterface > const *>(
xColumns->getByName(sIdentifierColumnName).getValue()), UNO_QUERY);
}
return xReturn;
@@ -436,7 +436,7 @@ static OUString lcl_AddProperty(Reference< XNameAccess > xColumns,
OUString uRet;
Reference< sdb::XColumn > xCol;
if (xColumns->hasByName(uColumnName))
- xCol = Reference< sdb::XColumn > (*static_cast<Reference< XInterface > const *>(xColumns->getByName(uColumnName).getValue()), UNO_QUERY);
+ xCol.set(*static_cast<Reference< XInterface > const *>(xColumns->getByName(uColumnName).getValue()), UNO_QUERY);
if (xCol.is())
uRet = xCol->getString();
return uRet;
@@ -463,7 +463,7 @@ Any BibliographyLoader::getByName(const OUString& rName) throw
OUString sId = sIdentifierMapping;
Reference< sdb::XColumn > xColumn;
if (xColumns->hasByName(sId))
- xColumn = Reference< sdb::XColumn > (*static_cast<Reference< XInterface > const *>(xColumns->getByName(sId).getValue()), UNO_QUERY);
+ xColumn.set(*static_cast<Reference< XInterface > const *>(xColumns->getByName(sId).getValue()), UNO_QUERY);
if (xColumn.is())
{
do