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 /vcl/source/graphic/Manager.cxx | |
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 'vcl/source/graphic/Manager.cxx')
-rw-r--r-- | vcl/source/graphic/Manager.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/graphic/Manager.cxx b/vcl/source/graphic/Manager.cxx index 7a25f8e41b04..6bcd709480e8 100644 --- a/vcl/source/graphic/Manager.cxx +++ b/vcl/source/graphic/Manager.cxx @@ -125,7 +125,7 @@ IMPL_LINK(Manager, SwapOutTimerHandler, Timer*, pTimer, void) } void Manager::registerGraphic(const std::shared_ptr<ImpGraphic>& pImpGraphic, - OUString const& /*rsContext*/) + std::u16string_view /*rsContext*/) { std::scoped_lock<std::recursive_mutex> aGuard(maMutex); @@ -167,28 +167,28 @@ void Manager::unregisterGraphic(ImpGraphic* pImpGraphic) std::shared_ptr<ImpGraphic> Manager::copy(std::shared_ptr<ImpGraphic> const& rImpGraphicPtr) { auto pReturn = std::make_shared<ImpGraphic>(*rImpGraphicPtr); - registerGraphic(pReturn, "Copy"); + registerGraphic(pReturn, u"Copy"); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance() { auto pReturn = std::make_shared<ImpGraphic>(); - registerGraphic(pReturn, "Empty"); + registerGraphic(pReturn, u"Empty"); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance(const BitmapEx& rBitmapEx) { auto pReturn = std::make_shared<ImpGraphic>(rBitmapEx); - registerGraphic(pReturn, "BitmapEx"); + registerGraphic(pReturn, u"BitmapEx"); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance(const Animation& rAnimation) { auto pReturn = std::make_shared<ImpGraphic>(rAnimation); - registerGraphic(pReturn, "Animation"); + registerGraphic(pReturn, u"Animation"); return pReturn; } @@ -196,21 +196,21 @@ std::shared_ptr<ImpGraphic> Manager::newInstance(const std::shared_ptr<VectorGraphicData>& rVectorGraphicDataPtr) { auto pReturn = std::make_shared<ImpGraphic>(rVectorGraphicDataPtr); - registerGraphic(pReturn, "VectorGraphic"); + registerGraphic(pReturn, u"VectorGraphic"); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance(const GDIMetaFile& rMetaFile) { auto pReturn = std::make_shared<ImpGraphic>(rMetaFile); - registerGraphic(pReturn, "Metafile"); + registerGraphic(pReturn, u"Metafile"); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance(const GraphicExternalLink& rGraphicLink) { auto pReturn = std::make_shared<ImpGraphic>(rGraphicLink); - registerGraphic(pReturn, "GraphicExternalLink"); + registerGraphic(pReturn, u"GraphicExternalLink"); return pReturn; } |