loplugin:oncevar (clang-cl): winaccessibility

Change-Id: I26dca32ba03c7fe163886ebcd4a6a8bc4871b065
This commit is contained in:
Stephan Bergmann
2017-07-03 14:04:30 +02:00
parent d6b6250584
commit 015269478d
2 changed files with 2 additions and 4 deletions

View File

@@ -228,11 +228,10 @@ STDMETHODIMP CAccEditableText::setAttributes(long startOffset, long endOffset, B
::rtl::OUString ouStr(reinterpret_cast<sal_Unicode const *>(*attributes)); ::rtl::OUString ouStr(reinterpret_cast<sal_Unicode const *>(*attributes));
sal_Int32 nIndex = 0; sal_Int32 nIndex = 0;
sal_Unicode cTok = ';';
vector< ::rtl::OUString > vecAttr; vector< ::rtl::OUString > vecAttr;
do do
{ {
::rtl::OUString ouToken = ouStr.getToken(0, cTok, nIndex); ::rtl::OUString ouToken = ouStr.getToken(0, ';', nIndex);
vecAttr.push_back(ouToken); vecAttr.push_back(ouToken);
} }
while(nIndex >= 0); while(nIndex >= 0);

View File

@@ -429,7 +429,6 @@ void AccContainerEventListener::HandleValueChangedEvent(Any, Any)
bool AccContainerEventListener::IsEditable(Reference<XAccessibleContext> const & xContext) bool AccContainerEventListener::IsEditable(Reference<XAccessibleContext> const & xContext)
{ {
bool ret = false;
Reference< XAccessibleStateSet > pRState = xContext->getAccessibleStateSet(); Reference< XAccessibleStateSet > pRState = xContext->getAccessibleStateSet();
if( !pRState.is() ) if( !pRState.is() )
return false; return false;
@@ -441,7 +440,7 @@ bool AccContainerEventListener::IsEditable(Reference<XAccessibleContext> const &
if(pStates[iIndex] == AccessibleStateType::EDITABLE) if(pStates[iIndex] == AccessibleStateType::EDITABLE)
return true; return true;
} }
return ret; return false;
} }
bool AccContainerEventListener::NotifyChildEvent(short nWinEvent,const Any &Value) bool AccContainerEventListener::NotifyChildEvent(short nWinEvent,const Any &Value)