diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-04 14:30:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-04 20:48:15 +0200 |
commit | 5a28a2ac3f692975306025e9e35e95f4c9ddcd38 (patch) | |
tree | 78ab32b30a03c78a8d57c4f27278b782f07a2f8c /linguistic | |
parent | ca4df96c7d5c0883da42774a3e99f552739f371f (diff) |
loplugin:referencecasting (clang-cl)
("the source reference is already a subtype of the destination reference")
Change-Id: Ifba02593d77057eaa356ec7c3c76de64ba65cf09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100089
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index 31f0a20c4230..03c576a820f4 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -530,10 +530,8 @@ void SAL_CALL size_t nCount = rDicList.size(); for (size_t i = 0; i < nCount; i++) { - uno::Reference< XDictionary > xDic( rDicList[i], UNO_QUERY ); - // save (modified) dictionaries - uno::Reference< frame::XStorable > xStor( xDic , UNO_QUERY ); + uno::Reference< frame::XStorable > xStor( rDicList[i] , UNO_QUERY ); if (xStor.is()) { try @@ -548,8 +546,8 @@ void SAL_CALL // release references to (members of) this object hold by // dictionaries - if (xDic.is()) - xDic->removeDictionaryEventListener( mxDicEvtLstnrHelper.get() ); + if (rDicList[i].is()) + rDicList[i]->removeDictionaryEventListener( mxDicEvtLstnrHelper.get() ); } } mxDicEvtLstnrHelper.clear(); |