diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 16:39:09 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-23 11:04:42 +0200 |
commit | bd6fb0cd3eee3c7d414e55a7678c0097aadc7646 (patch) | |
tree | 5f754d7e485ab31dd4e04782b8eccd50d854d91e /accessibility | |
parent | 3501c52176d1122d9de08462435f633cd21de370 (diff) |
Extended loplugin:ostr: Rewrite some O[U]StringLiteral -> O[U]String
...in include files. This is a mix of automatic rewriting in include files and
manual fixups (mostly addressing loplugin:redundantfcast) in source files that
include those.
Change-Id: I1f3cc1e67b9cabd2e9d61a4d9e9a01e587ea35cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158337
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/inc/strings.hxx | 14 | ||||
-rw-r--r-- | accessibility/source/standard/vclxaccessiblescrollbar.cxx | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/accessibility/inc/strings.hxx b/accessibility/inc/strings.hxx index 85dcf7eb9279..6fd402a9ba06 100644 --- a/accessibility/inc/strings.hxx +++ b/accessibility/inc/strings.hxx @@ -11,13 +11,13 @@ #include <rtl/ustring.hxx> -inline constexpr OUStringLiteral RID_STR_ACC_ACTION_CLICK = u"press"; -inline constexpr OUStringLiteral RID_STR_ACC_ACTION_TOGGLEPOPUP = u"togglePopup"; -inline constexpr OUStringLiteral RID_STR_ACC_ACTION_SELECT = u"select"; -inline constexpr OUStringLiteral RID_STR_ACC_ACTION_INCLINE = u"incrementLine"; -inline constexpr OUStringLiteral RID_STR_ACC_ACTION_DECLINE = u"decrementLine"; -inline constexpr OUStringLiteral RID_STR_ACC_ACTION_INCBLOCK = u"incrementBlock"; -inline constexpr OUStringLiteral RID_STR_ACC_ACTION_DECBLOCK = u"decrementBlock"; +inline constexpr OUString RID_STR_ACC_ACTION_CLICK = u"press"_ustr; +inline constexpr OUString RID_STR_ACC_ACTION_TOGGLEPOPUP = u"togglePopup"_ustr; +inline constexpr OUString RID_STR_ACC_ACTION_SELECT = u"select"_ustr; +inline constexpr OUString RID_STR_ACC_ACTION_INCLINE = u"incrementLine"_ustr; +inline constexpr OUString RID_STR_ACC_ACTION_DECLINE = u"decrementLine"_ustr; +inline constexpr OUString RID_STR_ACC_ACTION_INCBLOCK = u"incrementBlock"_ustr; +inline constexpr OUString RID_STR_ACC_ACTION_DECBLOCK = u"decrementBlock"_ustr; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/accessibility/source/standard/vclxaccessiblescrollbar.cxx b/accessibility/source/standard/vclxaccessiblescrollbar.cxx index 4ea6f788bb3c..d608ec22e8f4 100644 --- a/accessibility/source/standard/vclxaccessiblescrollbar.cxx +++ b/accessibility/source/standard/vclxaccessiblescrollbar.cxx @@ -142,10 +142,10 @@ OUString VCLXAccessibleScrollBar::getAccessibleActionDescription ( sal_Int32 nIn switch ( nIndex ) { - case 0: sDescription = OUString(RID_STR_ACC_ACTION_DECLINE); break; - case 1: sDescription = OUString(RID_STR_ACC_ACTION_INCLINE); break; - case 2: sDescription = OUString(RID_STR_ACC_ACTION_DECBLOCK); break; - case 3: sDescription = OUString(RID_STR_ACC_ACTION_INCBLOCK); break; + case 0: sDescription = RID_STR_ACC_ACTION_DECLINE; break; + case 1: sDescription = RID_STR_ACC_ACTION_INCLINE; break; + case 2: sDescription = RID_STR_ACC_ACTION_DECBLOCK; break; + case 3: sDescription = RID_STR_ACC_ACTION_INCBLOCK; break; default: break; } |