Kaydet (Commit) 01526947 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:oncevar (clang-cl): winaccessibility

Change-Id: I26dca32ba03c7fe163886ebcd4a6a8bc4871b065
üst d6b62505
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment