From 70519a43e0d89a6b5d89859a6851f8c757c6b0c7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 11 Jan 2019 11:21:46 +0100 Subject: Replace OUStringBuffer::appendCopy with append(std::u16string_view) ...which is more general Change-Id: I94f28f8eda887120cf5f143b4549e0339b60e6a7 Reviewed-on: https://gerrit.libreoffice.org/66155 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- ucb/source/ucp/tdoc/tdoc_content.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ucb') diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx index 1cf7fbdaa222..688662e30a95 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.cxx +++ b/ucb/source/ucp/tdoc/tdoc_content.cxx @@ -24,6 +24,10 @@ *************************************************************************/ +#include + +#include + #include #include #include @@ -1729,7 +1733,7 @@ Content::queryChildContent( const OUString & rRelativeChildUri ) if ( !rRelativeChildUri.startsWith("/") ) aBuf.append( rRelativeChildUri ); else - aBuf.appendCopy( rRelativeChildUri, 1 ); + aBuf.append( std::u16string_view(rRelativeChildUri).substr(1) ); uno::Reference< ucb::XContentIdentifier > xChildId = new ::ucbhelper::ContentIdentifier( aBuf.makeStringAndClear() ); -- cgit