summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-30 14:22:53 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-31 12:56:38 +0000
commit3c971162b57bb042dc001f775b8e20ec37ecbef8 (patch)
tree49c14944b816284c05a3d20897b92a2e2a1fd2ad /editeng
parent4530451d40470bf5359645de0c142ddf9dc329b6 (diff)
use uno::Reference::set method instead of assignment
Change-Id: I150f213ab033f5fc1b50abe4e1529292206c9feb Reviewed-on: https://gerrit.libreoffice.org/19689 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/numitem.cxx2
-rw-r--r--editeng/source/misc/unolingu.cxx13
-rw-r--r--editeng/source/xml/xmltxtimp.cxx2
3 files changed, 8 insertions, 9 deletions
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index 834d5f44e26d..e38e0cd75e38 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -69,7 +69,7 @@ static void lcl_getFormatter(css::uno::Reference<css::text::XNumberingFormatter>
{
Reference<XComponentContext> xContext( ::comphelper::getProcessComponentContext() );
Reference<XDefaultNumberingProvider> xRet = text::DefaultNumberingProvider::create(xContext);
- _xFormatter = Reference<XNumberingFormatter> (xRet, UNO_QUERY);
+ _xFormatter.set(xRet, UNO_QUERY);
}
catch(const Exception&)
{
diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx
index 6eff02562de0..6adfbe9144cc 100644
--- a/editeng/source/misc/unolingu.cxx
+++ b/editeng/source/misc/unolingu.cxx
@@ -237,7 +237,7 @@ void SpellDummy_Impl::GetSpell_Impl()
if (!xSpell.is())
{
uno::Reference< XLinguServiceManager2 > xLngSvcMgr( GetLngSvcMgr_Impl() );
- xSpell = uno::Reference< XSpellChecker1 >( xLngSvcMgr->getSpellChecker(), UNO_QUERY );
+ xSpell.set( xLngSvcMgr->getSpellChecker(), UNO_QUERY );
}
}
@@ -640,8 +640,7 @@ uno::Reference< XDictionary > LinguMgr::GetIgnoreAll()
uno::Reference< XSearchableDictionaryList > xTmpDicList( GetDictionaryList() );
if (xTmpDicList.is())
{
- xIgnoreAll = uno::Reference< XDictionary > ( xTmpDicList->getDictionaryByName(
- "IgnoreAllList" ), UNO_QUERY );
+ xIgnoreAll.set( xTmpDicList->getDictionaryByName( "IgnoreAllList" ), UNO_QUERY );
}
return xIgnoreAll;
}
@@ -657,11 +656,11 @@ uno::Reference< XDictionary > LinguMgr::GetChangeAll()
uno::Reference< XSearchableDictionaryList > _xDicList( GetDictionaryList() , UNO_QUERY );
if (_xDicList.is())
{
- xChangeAll = uno::Reference< XDictionary > (
- _xDicList->createDictionary(
+ xChangeAll.set( _xDicList->createDictionary(
"ChangeAllList",
LanguageTag::convertToLocale( LANGUAGE_NONE ),
- DictionaryType_NEGATIVE, OUString() ), UNO_QUERY );
+ DictionaryType_NEGATIVE, OUString() ),
+ UNO_QUERY );
}
return xChangeAll;
}
@@ -702,7 +701,7 @@ uno::Reference< XDictionary > LinguMgr::GetStandard()
xTmpDicList->addDictionary( xTmp );
xTmp->setActive( sal_True );
}
- xDic = uno::Reference< XDictionary > ( xTmp, UNO_QUERY );
+ xDic.set( xTmp, UNO_QUERY );
}
#if OSL_DEBUG_LEVEL > 1
uno::Reference< XStorable > xStor( xDic, UNO_QUERY );
diff --git a/editeng/source/xml/xmltxtimp.cxx b/editeng/source/xml/xmltxtimp.cxx
index 321a817e2221..b3c1042e1f39 100644
--- a/editeng/source/xml/xmltxtimp.cxx
+++ b/editeng/source/xml/xmltxtimp.cxx
@@ -182,7 +182,7 @@ void SvxReadXML( EditEngine& rEditEngine, SvStream& rStream, const ESelection& r
xSource->setOutputStream( uno::Reference< io::XOutputStream >::query( xPipe ) );
xml::sax::InputSource aParserInput;
- aParserInput.aInputStream = uno::Reference< io::XInputStream >::query( xPipe );
+ aParserInput.aInputStream.set( xPipe, UNO_QUERY );
aParserInput.sSystemId = aMedium.GetName();