diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-15 08:48:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-17 08:25:06 +0200 |
commit | 16690220ed6e68f2e9674a09b5008f38c5e6ed8d (patch) | |
tree | 2f830b7ac23f136585e7dc4adf5d456f4995cc99 /linguistic | |
parent | 86d70dc840b88ed827d6d8febaf512264009951d (diff) |
loplugin:singlevalfields
tighten up the handling of binary operators
Change-Id: I262ec57bf7142fa094d240738150a94d83fd15ee
Reviewed-on: https://gerrit.libreoffice.org/61777
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index 7f875fc3cc05..579f37625225 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -74,8 +74,7 @@ class DicEvtListenerHelper : uno::Reference< XDictionaryList > xMyDicList; sal_Int16 nCondensedEvt; - sal_Int16 nNumCollectEvtListeners, - nNumVerboseListeners; + sal_Int16 nNumCollectEvtListeners; public: explicit DicEvtListenerHelper( const uno::Reference< XDictionaryList > &rxDicList ); @@ -109,7 +108,7 @@ DicEvtListenerHelper::DicEvtListenerHelper( xMyDicList ( rxDicList ) { nCondensedEvt = 0; - nNumCollectEvtListeners = nNumVerboseListeners = 0; + nNumCollectEvtListeners = 0; } @@ -194,12 +193,6 @@ void SAL_CALL DicEvtListenerHelper::processDictionaryEvent( DictionaryListEventFlags::DEACTIVATE_NEG_DIC : DictionaryListEventFlags::DEACTIVATE_POS_DIC; - // update list of collected events if needs to be - if (nNumVerboseListeners > 0) - { - aCollectDicEvt.push_back(rDicEvent); - } - if (nNumCollectEvtListeners == 0 && nCondensedEvt != 0) FlushEvents(); } @@ -242,8 +235,6 @@ sal_Int16 DicEvtListenerHelper::FlushEvents() { // build DictionaryListEvent to pass on to listeners uno::Sequence< DictionaryEvent > aDicEvents; - if (nNumVerboseListeners > 0) - aDicEvents = comphelper::containerToSequence(aCollectDicEvt); DictionaryListEvent aEvent( xMyDicList, nCondensedEvt, aDicEvents ); // pass on event |