summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-28 17:56:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-29 16:42:33 +0100
commit042033f1e6da22616cb76c8d950c20c9efecbad5 (patch)
tree26b3f1f42d067506f44550b410f3fb9640616a5b /canvas
parentccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (diff)
loplugin:stringviewparam: operator +
Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/tools/propertysethelper.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/canvas/source/tools/propertysethelper.cxx b/canvas/source/tools/propertysethelper.cxx
index e7880fe4bd83..92f2e3bd28e4 100644
--- a/canvas/source/tools/propertysethelper.cxx
+++ b/canvas/source/tools/propertysethelper.cxx
@@ -19,6 +19,8 @@
#include <sal/config.h>
+#include <string_view>
+
#include <propertysethelper.hxx>
#include <com/sun/star/beans/PropertyVetoException.hpp>
#include <com/sun/star/beans/UnknownPropertyException.hpp>
@@ -29,18 +31,18 @@ namespace canvas
{
namespace
{
- void throwUnknown( const OUString& aPropertyName )
+ void throwUnknown( std::u16string_view aPropertyName )
{
throw beans::UnknownPropertyException(
- "PropertySetHelper: property " +
+ OUString::Concat("PropertySetHelper: property ") +
aPropertyName + " not found."
);
}
- void throwVeto( const OUString& aPropertyName )
+ void throwVeto( std::u16string_view aPropertyName )
{
throw beans::PropertyVetoException(
- "PropertySetHelper: property " +
+ OUString::Concat("PropertySetHelper: property ") +
aPropertyName + " access was vetoed." );
}