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 /svtools | |
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 'svtools')
-rw-r--r-- | svtools/source/filter/exportdialog.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx index 43f7cedcba7b..5f062bf14803 100644 --- a/svtools/source/filter/exportdialog.cxx +++ b/svtools/source/filter/exportdialog.cxx @@ -67,26 +67,26 @@ using namespace ::com::sun::star; -static sal_Int16 GetFilterFormat(const OUString& rExt) +static sal_Int16 GetFilterFormat(std::u16string_view rExt) { sal_Int16 nFormat = FORMAT_UNKNOWN; - if ( rExt == "JPG" ) + if ( rExt == u"JPG" ) nFormat = FORMAT_JPG; - else if ( rExt == "PNG" ) + else if ( rExt == u"PNG" ) nFormat = FORMAT_PNG; - else if ( rExt == "BMP" ) + else if ( rExt == u"BMP" ) nFormat = FORMAT_BMP; - else if ( rExt == "GIF" ) + else if ( rExt == u"GIF" ) nFormat = FORMAT_GIF; - else if ( rExt == "TIF" ) + else if ( rExt == u"TIF" ) nFormat = FORMAT_TIF; - else if ( rExt == "WMF" ) + else if ( rExt == u"WMF" ) nFormat = FORMAT_WMF; - else if ( rExt == "EMF" ) + else if ( rExt == u"EMF" ) nFormat = FORMAT_EMF; - else if ( rExt == "EPS" ) + else if ( rExt == u"EPS" ) nFormat = FORMAT_EPS; - else if ( rExt == "SVG" ) + else if ( rExt == u"SVG" ) nFormat = FORMAT_SVG; return nFormat; } |