summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/editeng/editview.cxx2
-rw-r--r--editeng/source/editeng/impedit.cxx5
-rw-r--r--editeng/source/misc/hangulhanja.cxx5
-rw-r--r--editeng/source/misc/splwrap.cxx6
-rw-r--r--editeng/source/misc/svxacorr.cxx3
-rw-r--r--editeng/source/misc/unolingu.cxx17
6 files changed, 16 insertions, 22 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index 637f36a73cba..53b6820a0cdf 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -975,7 +975,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo
sal_uInt16 nDicCount = static_cast<sal_uInt16>(aDics.getLength());
for (sal_uInt16 i = 0; i < nDicCount; i++)
{
- uno::Reference< linguistic2::XDictionary > xDicTmp( pDic[i], uno::UNO_QUERY );
+ uno::Reference< linguistic2::XDictionary > xDicTmp = pDic[i];
if (!xDicTmp.is() || LinguMgr::GetIgnoreAllList() == xDicTmp)
continue;
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 15a25c4cdd68..a30d658ba492 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1438,7 +1438,7 @@ OUString ImpEditView::SpellIgnoreWord()
if ( !aWord.isEmpty() )
{
- Reference< XDictionary > xDic( LinguMgr::GetIgnoreAllList(), UNO_QUERY );
+ Reference< XDictionary > xDic = LinguMgr::GetIgnoreAllList();
if (xDic.is())
xDic->add( aWord, false, OUString() );
EditDoc& rDoc = pEditEngine->GetEditDoc();
@@ -2325,8 +2325,7 @@ void ImpEditView::RemoveDragAndDropListeners()
if ( mxDnDListener.is() )
{
- uno::Reference< lang::XEventListener> xEL( mxDnDListener, uno::UNO_QUERY );
- xEL->disposing( lang::EventObject() ); // #95154# Empty Source means it's the Client
+ mxDnDListener->disposing( lang::EventObject() ); // #95154# Empty Source means it's the Client
mxDnDListener.clear();
}
diff --git a/editeng/source/misc/hangulhanja.cxx b/editeng/source/misc/hangulhanja.cxx
index 0bdbb50d33ee..da40ec6c103a 100644
--- a/editeng/source/misc/hangulhanja.cxx
+++ b/editeng/source/misc/hangulhanja.cxx
@@ -749,12 +749,11 @@ namespace editeng
// exactly which characters are really changed in order to keep as much
// from attributation for the text as possible.
Sequence< sal_Int32 > aOffsets;
- Reference< XExtendedTextConversion > xExtConverter( m_xConverter, UNO_QUERY );
- if (m_eConvType == HHC::eConvSimplifiedTraditional && xExtConverter.is())
+ if (m_eConvType == HHC::eConvSimplifiedTraditional && m_xConverter.is())
{
try
{
- xExtConverter->getConversionWithOffset(
+ m_xConverter->getConversionWithOffset(
m_sCurrentPortion,
m_nCurrentStartIndex,
m_nCurrentEndIndex - m_nCurrentStartIndex,
diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx
index 0d657c9009f6..5e9cddc5d841 100644
--- a/editeng/source/misc/splwrap.cxx
+++ b/editeng/source/misc/splwrap.cxx
@@ -401,7 +401,7 @@ Reference< XDictionary > SvxSpellWrapper::GetAllRightDic()
sal_Int32 i = 0;
while (!xDic.is() && i < nCount)
{
- Reference< XDictionary > xTmp( pDic[i], UNO_QUERY );
+ Reference< XDictionary > xTmp = pDic[i];
if (xTmp.is())
{
if ( xTmp->isActive() &&
@@ -457,8 +457,8 @@ bool SvxSpellWrapper::FindSpellError()
else
{
// look up in ChangeAllList for misspelled word
- Reference< XDictionary > xChangeAllList(
- LinguMgr::GetChangeAllList(), UNO_QUERY );
+ Reference< XDictionary > xChangeAllList =
+ LinguMgr::GetChangeAllList();
Reference< XDictionaryEntry > xEntry;
if (xChangeAllList.is())
xEntry = xChangeAllList->getEntry( xAlt->getWord() );
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 3fa9fa1dcb7c..6b9e6df1111c 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2444,8 +2444,7 @@ bool SvxAutoCorrectLanguageLists::MakeBlocklist_Imp( SotStorage& rStg )
uno::Reference < io::XOutputStream> xOut = new utl::OOutputStreamWrapper( *refList );
xWriter->setOutputStream(xOut);
- uno::Reference<xml::sax::XDocumentHandler> xHandler(xWriter, uno::UNO_QUERY);
- rtl::Reference< SvXMLAutoCorrectExport > xExp( new SvXMLAutoCorrectExport( xContext, pAutocorr_List.get(), pXMLImplAutocorr_ListStr, xHandler ) );
+ rtl::Reference< SvXMLAutoCorrectExport > xExp( new SvXMLAutoCorrectExport( xContext, pAutocorr_List.get(), pXMLImplAutocorr_ListStr, xWriter ) );
xExp->exportDoc( XML_BLOCK_LIST );
diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx
index a96deb381edd..10c184aaa2f7 100644
--- a/editeng/source/misc/unolingu.cxx
+++ b/editeng/source/misc/unolingu.cxx
@@ -600,9 +600,8 @@ uno::Reference< XDictionary > LinguMgr::GetIgnoreAll()
if (xTmpDicList.is())
{
std::locale loc(Translate::Create("svt"));
- xIgnoreAll.set( xTmpDicList->getDictionaryByName(
- Translate::get(STR_DESCRIPTION_IGNOREALLLIST, loc) ),
- UNO_QUERY );
+ xIgnoreAll = xTmpDicList->getDictionaryByName(
+ Translate::get(STR_DESCRIPTION_IGNOREALLLIST, loc) );
}
return xIgnoreAll;
}
@@ -615,14 +614,13 @@ uno::Reference< XDictionary > LinguMgr::GetChangeAll()
if (!pExitLstnr)
pExitLstnr = new LinguMgrExitLstnr;
- uno::Reference< XSearchableDictionaryList > _xDicList( GetDictionaryList() , UNO_QUERY );
+ uno::Reference< XSearchableDictionaryList > _xDicList = GetDictionaryList();
if (_xDicList.is())
{
- xChangeAll.set( _xDicList->createDictionary(
+ xChangeAll = _xDicList->createDictionary(
"ChangeAllList",
LanguageTag::convertToLocale( LANGUAGE_NONE ),
- DictionaryType_NEGATIVE, OUString() ),
- UNO_QUERY );
+ DictionaryType_NEGATIVE, OUString() );
}
return xChangeAll;
}
@@ -640,8 +638,7 @@ uno::Reference< XDictionary > LinguMgr::GetStandard()
return nullptr;
const OUString aDicName( "standard.dic" );
- uno::Reference< XDictionary > xDic( xTmpDicList->getDictionaryByName( aDicName ),
- UNO_QUERY );
+ uno::Reference< XDictionary > xDic = xTmpDicList->getDictionaryByName( aDicName );
if (!xDic.is())
{
// try to create standard dictionary
@@ -663,7 +660,7 @@ uno::Reference< XDictionary > LinguMgr::GetStandard()
xTmpDicList->addDictionary( xTmp );
xTmp->setActive( true );
}
- xDic.set( xTmp, UNO_QUERY );
+ xDic = xTmp;
}
#if OSL_DEBUG_LEVEL > 1
uno::Reference< XStorable > xStor( xDic, UNO_QUERY );