diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-02-26 15:13:19 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-02-26 22:37:34 +0100 |
commit | 492a683c70d98d005bcb472770be33d3277499d7 (patch) | |
tree | fda70630464b269ff0095eaff8acf759c4fd59a9 /toolkit | |
parent | bd3dc6fc18a6360929e3427abccc572950d0aa8e (diff) |
tdf#159910 a11y: Slightly simplify VCLXAccessibleToolBoxItem::GetText
* Avoid deep nesting by returning non-empty value right away.
* Drop the `if (!sWinText.isEmpty())` before the last assignment.
At this point, `sRet` is already empty, so reassigning an empty
string makes no difference.
Change-Id: Ib17e363f761e3ce09b359cebb1599042a8f6b8bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163956
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'toolkit')
0 files changed, 0 insertions, 0 deletions