diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-25 08:14:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-30 12:32:14 +0100 |
commit | 8332d6d8200e8ca1f22dd98d9373efd5a431d09c (patch) | |
tree | dd45d452202998297b8562743ea6345462304d04 /vcl/source/window/window2.cxx | |
parent | d05a4cfbdcece491f7385dbeaa7eca03f2fdc1d5 (diff) |
loplugin:stringviewparam include comparisons with string literals
Change-Id: I8ba1214500dddaf413c506a4b82f43d63cda804b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106559
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r-- | vcl/source/window/window2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 9773ca2f8b53..a6399d24081d 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -1367,17 +1367,17 @@ void Window::queue_resize(StateChangedType eReason) namespace { - VclAlign toAlign(const OUString &rValue) + VclAlign toAlign(std::u16string_view rValue) { VclAlign eRet = VclAlign::Fill; - if (rValue == "fill") + if (rValue == u"fill") eRet = VclAlign::Fill; - else if (rValue == "start") + else if (rValue == u"start") eRet = VclAlign::Start; - else if (rValue == "end") + else if (rValue == u"end") eRet = VclAlign::End; - else if (rValue == "center") + else if (rValue == u"center") eRet = VclAlign::Center; return eRet; } |