diff options
Diffstat (limited to 'xmloff/source/meta/xmlmetai.cxx')
-rw-r--r-- | xmloff/source/meta/xmlmetai.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xmloff/source/meta/xmlmetai.cxx b/xmloff/source/meta/xmlmetai.cxx index 21f634fe50e5..c64e2f7cd068 100644 --- a/xmloff/source/meta/xmlmetai.cxx +++ b/xmloff/source/meta/xmlmetai.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <string_view> + #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> #include <com/sun/star/xml/dom/SAXDocumentBuilder.hpp> #include <com/sun/star/xml/dom/XSAXDocumentBuilder2.hpp> @@ -236,8 +240,8 @@ void SvXMLMetaDocumentContext::setBuildId(OUString const& i_rBuildId, const uno: if ( nBegin != -1 ) { sBuffer.append( '$' ); - sBuffer.appendCopy( i_rBuildId, - nBegin + sBuildCompare.getLength() ); + sBuffer.append( std::u16string_view(i_rBuildId).substr( + nBegin + sBuildCompare.getLength()) ); sBuildId = sBuffer.makeStringAndClear(); } } |