diff options
Diffstat (limited to 'ucb/source/ucp/tdoc/tdoc_content.cxx')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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 <sal/config.h> + +#include <string_view> + #include <osl/diagnose.h> #include <rtl/ustrbuf.hxx> #include <com/sun/star/beans/IllegalTypeException.hpp> @@ -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() ); |