diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-14 16:43:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-15 07:59:24 +0000 |
commit | f8854116e1c3bbe971dcb754f7db501d5302b651 (patch) | |
tree | a9e59bebff027d39c756c6b89d9b65e5533e834e /winaccessibility/source/UAccCOM/AccEditableText.cxx | |
parent | dd63b7431164cbc7de5ac62df44aeba344c009c5 (diff) |
clang-cl loplugin: winaccessibility
Change-Id: I40f8a6fef9d66b28a1d72551a6873b041b38b09d
Reviewed-on: https://gerrit.libreoffice.org/29840
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'winaccessibility/source/UAccCOM/AccEditableText.cxx')
-rw-r--r-- | winaccessibility/source/UAccCOM/AccEditableText.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/winaccessibility/source/UAccCOM/AccEditableText.cxx b/winaccessibility/source/UAccCOM/AccEditableText.cxx index dc9078fe1d28..28923b01436f 100644 --- a/winaccessibility/source/UAccCOM/AccEditableText.cxx +++ b/winaccessibility/source/UAccCOM/AccEditableText.cxx @@ -113,7 +113,7 @@ STDMETHODIMP CAccEditableText::insertText(long offset, BSTR * text) ENTER_PROTECTED_BLOCK - if (text == NULL) + if (text == nullptr) return E_INVALIDARG; if( !pRXEdtTxt.is() ) @@ -191,7 +191,7 @@ STDMETHODIMP CAccEditableText::replaceText(long startOffset, long endOffset, BST ENTER_PROTECTED_BLOCK // #CHECK# - if (text == NULL) + if (text == nullptr) return E_INVALIDARG; if( !pRXEdtTxt.is() ) return E_FAIL; @@ -220,7 +220,7 @@ STDMETHODIMP CAccEditableText::setAttributes(long startOffset, long endOffset, B ENTER_PROTECTED_BLOCK // #CHECK# - if (attributes == NULL) + if (attributes == nullptr) return E_INVALIDARG; if( !pRXEdtTxt.is() ) return E_FAIL; @@ -238,7 +238,7 @@ STDMETHODIMP CAccEditableText::setAttributes(long startOffset, long endOffset, B while(nIndex >= 0); Sequence< PropertyValue > beanSeq(vecAttr.size()); - for(unsigned int i = 0; i < vecAttr.size(); i ++) + for(std::vector<OUString>::size_type i = 0; i < vecAttr.size(); i ++) { ::rtl::OUString attr = vecAttr[i]; sal_Int32 nPos = attr.indexOf(':'); @@ -489,7 +489,7 @@ STDMETHODIMP CAccEditableText::put_XInterface(hyper pXInterface) CUNOXWrapper::put_XInterface(pXInterface); //special query. - if(pUNOInterface == NULL) + if(pUNOInterface == nullptr) return E_FAIL; Reference<XAccessibleContext> pRContext = pUNOInterface->getAccessibleContext(); if( !pRContext.is() ) @@ -498,7 +498,7 @@ STDMETHODIMP CAccEditableText::put_XInterface(hyper pXInterface) } Reference<XAccessibleEditableText> pRXI(pRContext,UNO_QUERY); if( !pRXI.is() ) - pRXEdtTxt = NULL; + pRXEdtTxt = nullptr; else pRXEdtTxt = pRXI.get(); return S_OK; |