[Libreoffice-commits] core.git: winaccessibility/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Oct 20 19:52:06 UTC 2018
winaccessibility/source/UAccCOM/AccTable.cxx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit cc21f1ab22328ddf2bd82a77d81dbee69c847e5e
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 19 14:11:56 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Oct 20 21:51:46 2018 +0200
dubious SysAllocString check
Change-Id: I1aece8321b12351b5e8a2d5c33e513531cbc95a1
Reviewed-on: https://gerrit.libreoffice.org/62007
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/winaccessibility/source/UAccCOM/AccTable.cxx b/winaccessibility/source/UAccCOM/AccTable.cxx
index dcd4ad2d65d7..6a872b277dc0 100644
--- a/winaccessibility/source/UAccCOM/AccTable.cxx
+++ b/winaccessibility/source/UAccCOM/AccTable.cxx
@@ -132,9 +132,9 @@ STDMETHODIMP CAccTable::get_columnDescription(long column, BSTR * description)
const ::rtl::OUString& ouStr = GetXInterface()->getAccessibleColumnDescription(column);
// #CHECK#
- SAFE_SYSFREESTRING(*description);//??
+ SAFE_SYSFREESTRING(*description);
*description = SysAllocString(o3tl::toW(ouStr.getStr()));
- if(description==nullptr)
+ if (*description==nullptr)
return E_FAIL;
return S_OK;
@@ -353,9 +353,8 @@ STDMETHODIMP CAccTable::get_rowDescription(long row, BSTR * description)
SAFE_SYSFREESTRING(*description);
*description = SysAllocString(o3tl::toW(ouStr.getStr()));
- if(description==nullptr)
+ if (*description==nullptr)
return E_FAIL;
-
return S_OK;
LEAVE_PROTECTED_BLOCK
More information about the Libreoffice-commits
mailing list