From 042033f1e6da22616cb76c8d950c20c9efecbad5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 28 Dec 2020 17:56:40 +0100 Subject: loplugin:stringviewparam: operator + Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- cui/source/dialogs/screenshotannotationdlg.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cui/source/dialogs/screenshotannotationdlg.cxx') diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx index 676dda6bca55..fd378f7686f1 100644 --- a/cui/source/dialogs/screenshotannotationdlg.cxx +++ b/cui/source/dialogs/screenshotannotationdlg.cxx @@ -49,7 +49,7 @@ using namespace com::sun::star; namespace { - OUString lcl_genRandom( const OUString &rId ) + OUString lcl_genRandom( std::u16string_view rId ) { //FIXME: plus timestamp unsigned int nRand = comphelper::rng::uniform_uint_distribution(0, 0xFFFF); @@ -62,7 +62,7 @@ namespace OUString aTempl("" " " //FIXME real dialog title or something ""); - aTempl = aTempl.replaceFirst( "%1", lcl_genRandom("alt_id") ); + aTempl = aTempl.replaceFirst( "%1", lcl_genRandom(u"alt_id") ); return aTempl; } @@ -73,7 +73,7 @@ namespace " width=\"%3cm\" height=\"%4cm\">" "%5" ""); - aTempl = aTempl.replaceFirst( "%1", lcl_genRandom("img_id") ); + aTempl = aTempl.replaceFirst( "%1", lcl_genRandom(u"img_id") ); aTempl = aTempl.replaceFirst( "%2", rScreenshotId ); aTempl = aTempl.replaceFirst( "%3", OUString::number( rSize.Width() ) ); aTempl = aTempl.replaceFirst( "%4", OUString::number( rSize.Height() ) ); @@ -86,7 +86,7 @@ namespace { OUString aTempl( "%2" "" SAL_NEWLINE_STRING ); - aTempl = aTempl.replaceFirst( "%1", lcl_genRandom("par_id") ); + aTempl = aTempl.replaceFirst( "%1", lcl_genRandom(u"par_id") ); aTempl = aTempl.replaceFirst( "%2", lcl_Image(rScreenshotId, rSize) ); return aTempl; @@ -98,7 +98,7 @@ namespace "" SAL_NEWLINE_STRING; aTempl = aTempl.replaceFirst( "%1", rWidgetId ); aTempl = aTempl.replaceFirst( "%2", rWidgetId ); - aTempl = aTempl.replaceFirst( "%3", lcl_genRandom("bm_id") ); + aTempl = aTempl.replaceFirst( "%3", lcl_genRandom(u"bm_id") ); return aTempl; } -- cgit