loplugin:oncevar (clang-cl): winaccessibility
Change-Id: I26dca32ba03c7fe163886ebcd4a6a8bc4871b065
This commit is contained in:
@@ -228,11 +228,10 @@ STDMETHODIMP CAccEditableText::setAttributes(long startOffset, long endOffset, B
|
||||
::rtl::OUString ouStr(reinterpret_cast<sal_Unicode const *>(*attributes));
|
||||
|
||||
sal_Int32 nIndex = 0;
|
||||
sal_Unicode cTok = ';';
|
||||
vector< ::rtl::OUString > vecAttr;
|
||||
do
|
||||
{
|
||||
::rtl::OUString ouToken = ouStr.getToken(0, cTok, nIndex);
|
||||
::rtl::OUString ouToken = ouStr.getToken(0, ';', nIndex);
|
||||
vecAttr.push_back(ouToken);
|
||||
}
|
||||
while(nIndex >= 0);
|
||||
|
@@ -429,7 +429,6 @@ void AccContainerEventListener::HandleValueChangedEvent(Any, Any)
|
||||
|
||||
bool AccContainerEventListener::IsEditable(Reference<XAccessibleContext> const & xContext)
|
||||
{
|
||||
bool ret = false;
|
||||
Reference< XAccessibleStateSet > pRState = xContext->getAccessibleStateSet();
|
||||
if( !pRState.is() )
|
||||
return false;
|
||||
@@ -441,7 +440,7 @@ bool AccContainerEventListener::IsEditable(Reference<XAccessibleContext> const &
|
||||
if(pStates[iIndex] == AccessibleStateType::EDITABLE)
|
||||
return true;
|
||||
}
|
||||
return ret;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AccContainerEventListener::NotifyChildEvent(short nWinEvent,const Any &Value)
|
||||
|
Reference in New Issue
Block a user