From bc91cc47505c448ded7297074ccff809b59e8ed1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 10 May 2024 13:18:59 +0200 Subject: loplugin:ostr in svx Change-Id: Ia765a03e033acb82e367873380d289587ea87d6c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167449 Reviewed-by: Noel Grandin Tested-by: Jenkins --- svx/source/svdraw/svdpage.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svx/source/svdraw/svdpage.cxx') diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx index 29636efca8fd..7630b7e26c90 100644 --- a/svx/source/svdraw/svdpage.cxx +++ b/svx/source/svdraw/svdpage.cxx @@ -577,7 +577,7 @@ void SdrObjList::sort( std::vector& sortOrder) auto it = std::find_if( sortOrder.begin(), sortOrder.end(), [this](const sal_Int32& rIt) { return ( rIt < 0 || o3tl::make_unsigned(rIt) >= maList.size() ); } ); if ( it != sortOrder.end()) - throw css::lang::IllegalArgumentException("negative index of shape", nullptr, 1); + throw css::lang::IllegalArgumentException(u"negative index of shape"_ustr, nullptr, 1); // no duplicates std::vector aNoDuplicates(sortOrder.size(), false); @@ -586,7 +586,7 @@ void SdrObjList::sort( std::vector& sortOrder) size_t idx = static_cast( sortOrder[i] ); if ( aNoDuplicates[idx] ) - throw css::lang::IllegalArgumentException("duplicate index of shape", nullptr, 2); + throw css::lang::IllegalArgumentException(u"duplicate index of shape"_ustr, nullptr, 2); aNoDuplicates[idx] = true; } @@ -615,7 +615,7 @@ void SdrObjList::sort( std::vector& sortOrder) if (aShapesWithTextbox.size() != maList.size() - sortOrder.size()) { - throw lang::IllegalArgumentException("mismatch of no. of shapes", nullptr, 0); + throw lang::IllegalArgumentException(u"mismatch of no. of shapes"_ustr, nullptr, 0); } for (size_t i = 0; i< sortOrder.size(); ++i) -- cgit