diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2022-03-01 10:16:20 +0000 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-03-01 15:51:43 +0100 |
commit | 774364243b5541328aa633d7ae535fa4ae716105 (patch) | |
tree | 3cca0861894e257e90b28f820af08522b5c2391c /winaccessibility | |
parent | df80ed941621da16459c16eae04f73300a606c9b (diff) |
wina11y: Use 'std::vector::empty()' instead of 'std::vector::size() == 0'
Change-Id: Icc365bad285d99abc2a1c9f26997e28701823262
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130757
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility')
-rw-r--r-- | winaccessibility/source/UAccCOM/AccEditableText.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winaccessibility/source/UAccCOM/AccEditableText.cxx b/winaccessibility/source/UAccCOM/AccEditableText.cxx index a953eacf1334..1e0343b9fcb5 100644 --- a/winaccessibility/source/UAccCOM/AccEditableText.cxx +++ b/winaccessibility/source/UAccCOM/AccEditableText.cxx @@ -397,11 +397,11 @@ void CAccEditableText::get_AnyFromOLECHAR(std::u16string_view ouName, const OUSt // Dump into Sequence. - int iSeqLen = (vecTabStop.size() == 0) ? 1 : vecTabStop.size(); + int iSeqLen = vecTabStop.empty() ? 1 : vecTabStop.size(); Sequence< css::style::TabStop > seqTabStop(iSeqLen); auto pseqTabStop = seqTabStop.getArray(); - if(vecTabStop.size() != 0) + if (!vecTabStop.empty()) { // Dump every element. for(int i = 0; i < iSeqLen; i ++) |