diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 15:20:12 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-02 06:46:53 +0000 |
commit | dd1729f854af4f27f396d51d3c930c95d1011001 (patch) | |
tree | b65685fee797f657a3bc950902956c3820fd5106 /extensions/source/resource | |
parent | 1b41208608f472df8dd5879c27dca45cc2ea7740 (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/resource')
-rw-r--r-- | extensions/source/resource/ResourceIndexAccess.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/resource/ResourceIndexAccess.cxx b/extensions/source/resource/ResourceIndexAccess.cxx index 638433fc8fd4..63bfee9e3e22 100644 --- a/extensions/source/resource/ResourceIndexAccess.cxx +++ b/extensions/source/resource/ResourceIndexAccess.cxx @@ -95,10 +95,10 @@ Any SAL_CALL ResourceIndexAccess::getByName(const OUString& aName) switch(::std::find(aNames.begin(), aNames.end(), aName) - aNames.begin()) { case 0: - xResult = Reference<XIndexAccess>(new ResourceStringIndexAccess(m_pResMgr)); + xResult.set(new ResourceStringIndexAccess(m_pResMgr)); break; case 1: - xResult = Reference<XIndexAccess>(new ResourceStringListIndexAccess(m_pResMgr)); + xResult.set(new ResourceStringListIndexAccess(m_pResMgr)); break; default: throw NoSuchElementException(); |