summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-06 09:42:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-07 00:47:20 +0200
commite0c33ec15f53a01fa3ee07489871bbe09bb5c9c3 (patch)
tree1afe391a2b4bf9eda13de043658941060cb401c2 /vcl/qt5
parent9e3da252c361b3e2b04a2df7a3ae2a5177b37713 (diff)
loplugin:ostr: automatic rewrite
Change-Id: I2d09b2b83e1b50493ec88d0b2c323a83c0c86395 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157647 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/QtAccessibleWidget.cxx64
-rw-r--r--vcl/qt5/QtMenu.cxx2
2 files changed, 33 insertions, 33 deletions
diff --git a/vcl/qt5/QtAccessibleWidget.cxx b/vcl/qt5/QtAccessibleWidget.cxx
index 8a2cf2ed8b91..15794039cf2c 100644
--- a/vcl/qt5/QtAccessibleWidget.cxx
+++ b/vcl/qt5/QtAccessibleWidget.cxx
@@ -907,77 +907,77 @@ OUString lcl_ConvertFontSlant(awt::FontSlant eFontSlant)
void lcl_ConvertFontUnderline(sal_Int16 nFontUnderline, OUString& rUnderlineStyle,
OUString& rUnderlineType, OUString& rUnderlineWidth)
{
- rUnderlineStyle = u"";
- rUnderlineType = u"single";
- rUnderlineWidth = u"auto";
+ rUnderlineStyle = u""_ustr;
+ rUnderlineType = u"single"_ustr;
+ rUnderlineWidth = u"auto"_ustr;
switch (nFontUnderline)
{
case awt::FontUnderline::BOLD:
- rUnderlineWidth = u"bold";
+ rUnderlineWidth = u"bold"_ustr;
return;
case awt::FontUnderline::BOLDDASH:
- rUnderlineWidth = u"bold";
- rUnderlineStyle = u"dash";
+ rUnderlineWidth = u"bold"_ustr;
+ rUnderlineStyle = u"dash"_ustr;
return;
case awt::FontUnderline::BOLDDASHDOT:
- rUnderlineWidth = u"bold";
- rUnderlineStyle = u"dot-dash";
+ rUnderlineWidth = u"bold"_ustr;
+ rUnderlineStyle = u"dot-dash"_ustr;
return;
case awt::FontUnderline::BOLDDASHDOTDOT:
- rUnderlineWidth = u"bold";
- rUnderlineStyle = u"dot-dot-dash";
+ rUnderlineWidth = u"bold"_ustr;
+ rUnderlineStyle = u"dot-dot-dash"_ustr;
return;
case awt::FontUnderline::BOLDDOTTED:
- rUnderlineWidth = u"bold";
- rUnderlineStyle = u"dotted";
+ rUnderlineWidth = u"bold"_ustr;
+ rUnderlineStyle = u"dotted"_ustr;
return;
case awt::FontUnderline::BOLDLONGDASH:
- rUnderlineWidth = u"bold";
- rUnderlineStyle = u"long-dash";
+ rUnderlineWidth = u"bold"_ustr;
+ rUnderlineStyle = u"long-dash"_ustr;
return;
case awt::FontUnderline::BOLDWAVE:
- rUnderlineWidth = u"bold";
- rUnderlineStyle = u"wave";
+ rUnderlineWidth = u"bold"_ustr;
+ rUnderlineStyle = u"wave"_ustr;
return;
case awt::FontUnderline::DASH:
- rUnderlineStyle = u"dash";
+ rUnderlineStyle = u"dash"_ustr;
return;
case awt::FontUnderline::DASHDOT:
- rUnderlineStyle = u"dot-dash";
+ rUnderlineStyle = u"dot-dash"_ustr;
return;
case awt::FontUnderline::DASHDOTDOT:
- rUnderlineStyle = u"dot-dot-dash";
+ rUnderlineStyle = u"dot-dot-dash"_ustr;
return;
case awt::FontUnderline::DONTKNOW:
- rUnderlineWidth = u"";
- rUnderlineStyle = u"";
- rUnderlineType = u"";
+ rUnderlineWidth = u""_ustr;
+ rUnderlineStyle = u""_ustr;
+ rUnderlineType = u""_ustr;
return;
case awt::FontUnderline::DOTTED:
- rUnderlineStyle = u"dotted";
+ rUnderlineStyle = u"dotted"_ustr;
return;
case awt::FontUnderline::DOUBLE:
- rUnderlineType = u"double";
+ rUnderlineType = u"double"_ustr;
return;
case awt::FontUnderline::DOUBLEWAVE:
- rUnderlineStyle = u"wave";
- rUnderlineType = u"double";
+ rUnderlineStyle = u"wave"_ustr;
+ rUnderlineType = u"double"_ustr;
return;
case awt::FontUnderline::LONGDASH:
- rUnderlineStyle = u"long-dash";
+ rUnderlineStyle = u"long-dash"_ustr;
return;
case awt::FontUnderline::NONE:
- rUnderlineWidth = u"none";
- rUnderlineStyle = u"none";
- rUnderlineType = u"none";
+ rUnderlineWidth = u"none"_ustr;
+ rUnderlineStyle = u"none"_ustr;
+ rUnderlineType = u"none"_ustr;
return;
case awt::FontUnderline::SINGLE:
- rUnderlineType = u"single";
+ rUnderlineType = u"single"_ustr;
return;
case awt::FontUnderline::SMALLWAVE:
case awt::FontUnderline::WAVE:
- rUnderlineStyle = u"wave";
+ rUnderlineStyle = u"wave"_ustr;
return;
default:
assert(false && "Unhandled font underline type");
diff --git a/vcl/qt5/QtMenu.cxx b/vcl/qt5/QtMenu.cxx
index e2a0d7bd714c..93f3d6f5a378 100644
--- a/vcl/qt5/QtMenu.cxx
+++ b/vcl/qt5/QtMenu.cxx
@@ -53,7 +53,7 @@ static inline void lcl_force_menubar_layout_update(QMenuBar& rMenuBar)
rMenuBar.adjustSize();
}
-OUString QtMenu::m_sCurrentHelpId = u"";
+OUString QtMenu::m_sCurrentHelpId = u""_ustr;
QtMenu::QtMenu(bool bMenuBar)
: mpVCLMenu(nullptr)