diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-04 14:16:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-04 14:20:51 +0200 |
commit | fcb8df3bcf551fc3437e6c7c8ddb24dc5a09db02 (patch) | |
tree | b00511c71c3ea467e1f029cfdb80bb6ce72960b5 /linguistic/source/spelldsp.cxx | |
parent | 59b072e22b0610abc7ffdbc75873ef5cbba58de7 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I11822c50fa66d038a3d6f38054ab35c2e613f077
Diffstat (limited to 'linguistic/source/spelldsp.cxx')
-rw-r--r-- | linguistic/source/spelldsp.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx index e77fd3063d38..745e0a900404 100644 --- a/linguistic/source/spelldsp.cxx +++ b/linguistic/source/spelldsp.cxx @@ -371,8 +371,7 @@ bool SpellCheckerDispatcher::isValid_Impl( Reference< XSpellChecker > xSpell; try { - xSpell = Reference< XSpellChecker >( - xContext->getServiceManager()->createInstanceWithArgumentsAndContext( + xSpell.set( xContext->getServiceManager()->createInstanceWithArgumentsAndContext( pImplNames[i], aArgs, xContext ), UNO_QUERY ); } @@ -557,8 +556,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( Reference< XSpellChecker > xSpell; try { - xSpell = Reference< XSpellChecker >( - xContext->getServiceManager()->createInstanceWithArgumentsAndContext( + xSpell.set( xContext->getServiceManager()->createInstanceWithArgumentsAndContext( pImplNames[i], aArgs, xContext ), UNO_QUERY ); } |