diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-13 14:29:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-17 09:57:35 +0100 |
commit | 8ef6067596cf4b2c52fbce94b44bf7af9fefa643 (patch) | |
tree | f4cca1a99ba97683b14fa6fe0f1f45f75bf855c2 /svx | |
parent | 75bada928cf08d2afc6efe52ba99b45088bc9eec (diff) |
loplugin:stringviewparam check methods too
not just functions
Change-Id: Icca295dd159002b428b73f2c95d40725434f04d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105789
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/ActionDescriptionProvider.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/_xoutbmp.cxx | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/ActionDescriptionProvider.cxx b/svx/source/svdraw/ActionDescriptionProvider.cxx index b2e38ebd99d8..a471f3e85763 100644 --- a/svx/source/svdraw/ActionDescriptionProvider.cxx +++ b/svx/source/svdraw/ActionDescriptionProvider.cxx @@ -23,7 +23,7 @@ #include <svx/strings.hrc> OUString ActionDescriptionProvider::createDescription( ActionType eActionType - , const OUString& rObjectName ) + , std::u16string_view rObjectName ) { const char* pResID = nullptr; switch( eActionType ) diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 37a07321441e..ae43c6bb3e41 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -487,7 +487,7 @@ void SdrGrafObj::ImpDeregisterLink() } } -void SdrGrafObj::SetGraphicLink(const OUString& rFileName, const OUString& /*rReferer*/, const OUString& /*rFilterName*/) +void SdrGrafObj::SetGraphicLink(const OUString& rFileName, std::u16string_view /*rReferer*/, std::u16string_view /*rFilterName*/) { Graphic aGraphic; aGraphic.setOriginURL(rFileName); diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx index 2bff13b00b30..1d0c23e92780 100644 --- a/svx/source/xoutdev/_xoutbmp.cxx +++ b/svx/source/xoutdev/_xoutbmp.cxx @@ -30,10 +30,10 @@ #include <vcl/cvtgrf.hxx> #include <memory> -#define FORMAT_BMP "bmp" -#define FORMAT_GIF "gif" -#define FORMAT_JPG "jpg" -#define FORMAT_PNG "png" +#define FORMAT_BMP u"bmp" +#define FORMAT_GIF u"gif" +#define FORMAT_JPG u"jpg" +#define FORMAT_PNG u"png" using namespace com::sun::star; |