diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 12:20:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-04 15:29:54 +0100 |
commit | c34e8bd71384326184baac7dea31f7ddf9bae6bc (patch) | |
tree | 0914b24023030781b3a74a768be9df4d2873b4b9 /cui/source/dialogs/toolbarmodedlg.cxx | |
parent | a1cdde17aa27902ee162d5b40860f05c592c4de8 (diff) |
loplugin:stringviewparam: operator +=
Change-Id: I30ce1b5bd8fb168da7067c1967c5af2569df2653
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108512
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cui/source/dialogs/toolbarmodedlg.cxx')
-rw-r--r-- | cui/source/dialogs/toolbarmodedlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/toolbarmodedlg.cxx b/cui/source/dialogs/toolbarmodedlg.cxx index e15f54e830cb..4f5df939e948 100644 --- a/cui/source/dialogs/toolbarmodedlg.cxx +++ b/cui/source/dialogs/toolbarmodedlg.cxx @@ -141,13 +141,13 @@ int ToolbarmodeDialog::GetActiveRadioButton() return -1; } -void ToolbarmodeDialog::UpdateImage(OUString sFileName) +void ToolbarmodeDialog::UpdateImage(std::u16string_view sFileName) { // load image OUString aURL("$BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR/toolbarmode/"); rtl::Bootstrap::expandMacros(aURL); aURL += sFileName; - if (sFileName.isEmpty() || !file_exists(aURL)) + if (sFileName.empty() || !file_exists(aURL)) return; // draw image Graphic aGraphic; |