From 04d383191403f400d7917412ea72a441e120b333 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 7 May 2024 08:50:53 +0200 Subject: loplugin:ostr in cppcanvas Change-Id: I59c10b0d82297157a87cb366be69c8e757638c20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167257 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppcanvas/qa/extras/emfplus/emfplus.cxx | 2 +- cppcanvas/source/mtfrenderer/implrenderer.cxx | 2 +- cppcanvas/source/mtfrenderer/mtftools.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cppcanvas') diff --git a/cppcanvas/qa/extras/emfplus/emfplus.cxx b/cppcanvas/qa/extras/emfplus/emfplus.cxx index 1ba179404f28..da1e40a5cc64 100644 --- a/cppcanvas/qa/extras/emfplus/emfplus.cxx +++ b/cppcanvas/qa/extras/emfplus/emfplus.cxx @@ -22,7 +22,7 @@ class Test : public UnoApiTest { public: Test() - : UnoApiTest("/cppcanvas/qa/extras/emfplus/data/") + : UnoApiTest(u"/cppcanvas/qa/extras/emfplus/data/"_ustr) { } diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index d3cfe793f45f..b62aa6ac90d0 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -830,7 +830,7 @@ namespace cppcanvas::internal if (rFont.GetEmphasisMark() != FontEmphasisMark::NONE) { uno::Sequence< beans::PropertyValue > aProperties{ comphelper::makePropertyValue( - "EmphasisMark", sal_uInt32(rFont.GetEmphasisMark())) }; + u"EmphasisMark"_ustr, sal_uInt32(rFont.GetEmphasisMark())) }; return rParms.mrCanvas->getUNOCanvas()->createFont(aFontRequest, aProperties, aFontMatrix); diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx index 94a83da70c19..b02f35547fc7 100644 --- a/cppcanvas/source/mtfrenderer/mtftools.cxx +++ b/cppcanvas/source/mtfrenderer/mtftools.cxx @@ -70,7 +70,7 @@ namespace cppcanvas::tools default: throw css::uno::RuntimeException( - "tools::getBaselineOffset(): Unexpected TextAlign value" ); + u"tools::getBaselineOffset(): Unexpected TextAlign value"_ustr ); } } -- cgit