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 --- io/source/acceptor/acceptor.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'io') diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index fe761018de52..1be39b4cb7d3 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -33,6 +33,7 @@ #include "acceptor.hxx" #include +#include #define IMPLEMENTATION_NAME "com.sun.star.comp.io.Acceptor" #define SERVICE_NAME "com.sun.star.connection.Acceptor" @@ -89,11 +90,11 @@ namespace { struct BeingInAccept { /// @throws AlreadyAcceptingException - BeingInAccept( bool *pFlag,const OUString & sConnectionDescription ) + BeingInAccept( bool *pFlag,std::u16string_view sConnectionDescription ) : m_pFlag( pFlag ) { if( *m_pFlag ) - throw AlreadyAcceptingException( "AlreadyAcceptingException :" + sConnectionDescription ); + throw AlreadyAcceptingException( OUString::Concat("AlreadyAcceptingException :") + sConnectionDescription ); *m_pFlag = true; } ~BeingInAccept() -- cgit