Tag: cws_src680_qiq User: fs Date: 06/06/19 03:10:36 Modified: /dba/dbaccess/source/ui/browser/ genericcontroller.cxx
Log: proper cache check File Changes: Directory: /dba/dbaccess/source/ui/browser/ =========================================== File [changed]: genericcontroller.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/genericcontroller.cxx?r1=1.68.10.2&r2=1.68.10.3 Delta lines: +7 -9 ------------------- --- genericcontroller.cxx 19 Jun 2006 09:27:50 -0000 1.68.10.2 +++ genericcontroller.cxx 19 Jun 2006 10:10:33 -0000 1.68.10.3 @@ -4,9 +4,9 @@ * * $RCSfile: genericcontroller.cxx,v $ * - * $Revision: 1.68.10.2 $ + * $Revision: 1.68.10.3 $ * - * last change: $Author: fs $ $Date: 2006/06/19 09:27:50 $ + * last change: $Author: fs $ $Date: 2006/06/19 10:10:33 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -465,19 +465,17 @@ FeatureState aFeatState( GetState( nFeat ) ); FeatureState& rCachedState = m_aStateCache[nFeat]; // creates if neccessary - if ( !_bIgnoreCache ) { // check if we really need to notify the listeners : this method may be called much more often than needed, so check // the cached state of the feature sal_Bool bAlreadyCached = ( m_aStateCache.find(nFeat) != m_aStateCache.end() ); - if ( bAlreadyCached && ( rCachedState.bEnabled == aFeatState.bEnabled ) ) - { // the enabled flag hasn't changed, maybe the state ? - if ( ( rCachedState.bChecked != aFeatState.bChecked ) - || ( rCachedState.sTitle != aFeatState.sTitle ) + if ( bAlreadyCached ) + if ( ( rCachedState.bEnabled == aFeatState.bEnabled ) + && ( rCachedState.bChecked == aFeatState.bChecked ) + && ( rCachedState.sTitle == aFeatState.sTitle ) ) return; - } } rCachedState = aFeatState; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
