summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-03 14:04:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-03 14:04:30 +0200
commit015269478d77da29dd21e35348d7296fbf4ad903 (patch)
treee981d4ddf8fdd29bd919f4f89aa536925b57eb92 /winaccessibility
parentd6b625058404cfc0bbccf8180c27419812f8d7ba (diff)
loplugin:oncevar (clang-cl): winaccessibility
Change-Id: I26dca32ba03c7fe163886ebcd4a6a8bc4871b065
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/UAccCOM/AccEditableText.cxx3
-rw-r--r--winaccessibility/source/service/AccContainerEventListener.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/winaccessibility/source/UAccCOM/AccEditableText.cxx b/winaccessibility/source/UAccCOM/AccEditableText.cxx
index e2cf3d3729be..5e63597bf937 100644
--- a/winaccessibility/source/UAccCOM/AccEditableText.cxx
+++ b/winaccessibility/source/UAccCOM/AccEditableText.cxx
@@ -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);
diff --git a/winaccessibility/source/service/AccContainerEventListener.cxx b/winaccessibility/source/service/AccContainerEventListener.cxx
index b26ee70fd85a..f275eafcf51f 100644
--- a/winaccessibility/source/service/AccContainerEventListener.cxx
+++ b/winaccessibility/source/service/AccContainerEventListener.cxx
@@ -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)