diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-06 15:16:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-06 21:31:14 +0200 |
commit | f840d3c9399cd257c8cfb757bd7666fe2e827773 (patch) | |
tree | 40e25b9c0b94bbcef776a87ec135c28a82e31071 /canvas/source/vcl | |
parent | 42e38e671cd2866e876dcf4bfa5e01741a7104e9 (diff) |
loplugin:ostr in canvas
Change-Id: I6fe0ed24a42394936975e763aba9dc3625a373ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167205
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas/source/vcl')
-rw-r--r-- | canvas/source/vcl/canvas.cxx | 2 | ||||
-rw-r--r-- | canvas/source/vcl/spritecanvas.cxx | 6 | ||||
-rw-r--r-- | canvas/source/vcl/windowoutdevholder.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/canvas/source/vcl/canvas.cxx b/canvas/source/vcl/canvas.cxx index 4a3b6f8d766b..b66b9751bb38 100644 --- a/canvas/source/vcl/canvas.cxx +++ b/canvas/source/vcl/canvas.cxx @@ -65,7 +65,7 @@ namespace vclcanvas OutputDevice* pOutDev = reinterpret_cast<OutputDevice*>(nPtr); if( !pOutDev ) - throw lang::NoSupportException("Passed OutDev invalid!", nullptr); + throw lang::NoSupportException(u"Passed OutDev invalid!"_ustr, nullptr); OutDevProviderSharedPtr pOutdevProvider = std::make_shared<OutDevHolder>(*pOutDev); diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx index cbe0fa8dc791..a4e46476ce78 100644 --- a/canvas/source/vcl/spritecanvas.cxx +++ b/canvas/source/vcl/spritecanvas.cxx @@ -82,7 +82,7 @@ namespace vclcanvas OutputDevice* pOutDev = reinterpret_cast<OutputDevice*>(nPtr); if( !pOutDev ) - throw lang::NoSupportException("Passed OutDev invalid!", nullptr); + throw lang::NoSupportException(u"Passed OutDev invalid!"_ustr, nullptr); uno::Reference< awt::XWindow > xParentWindow; maArguments[3] >>= xParentWindow; @@ -144,7 +144,7 @@ namespace vclcanvas OUString SAL_CALL SpriteCanvas::getServiceName( ) { - return "com.sun.star.rendering.SpriteCanvas.VCL"; + return u"com.sun.star.rendering.SpriteCanvas.VCL"_ustr; } // XServiceInfo @@ -154,7 +154,7 @@ namespace vclcanvas } OUString SpriteCanvas::getImplementationName() { - return "com.sun.star.comp.rendering.SpriteCanvas.VCL"; + return u"com.sun.star.comp.rendering.SpriteCanvas.VCL"_ustr; } sal_Bool SpriteCanvas::supportsService(const OUString& sServiceName) { diff --git a/canvas/source/vcl/windowoutdevholder.cxx b/canvas/source/vcl/windowoutdevholder.cxx index 4776ee554878..4cd91ee4a4e3 100644 --- a/canvas/source/vcl/windowoutdevholder.cxx +++ b/canvas/source/vcl/windowoutdevholder.cxx @@ -35,7 +35,7 @@ namespace vclcanvas VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow(xWin); if( !pWindow ) throw lang::NoSupportException( - "Parent window not VCL window, or canvas out-of-process!", + u"Parent window not VCL window, or canvas out-of-process!"_ustr, nullptr); return *pWindow; } |