diff options
-rw-r--r-- | sw/source/ui/utlui/content.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/ui/utlui/content.cxx b/sw/source/ui/utlui/content.cxx index 51f45297805d..49b19766d036 100644 --- a/sw/source/ui/utlui/content.cxx +++ b/sw/source/ui/utlui/content.cxx @@ -3107,14 +3107,14 @@ void NaviContentBookmark::Copy( TransferDataContainer& rData ) const { rtl_TextEncoding eSysCSet = gsl_getSystemTextEncoding(); - ByteString sStr( aUrl, eSysCSet ); - sStr += static_cast< char >(NAVI_BOOKMARK_DELIM); - sStr += ByteString( aDescr, eSysCSet ); - sStr += static_cast< char >(NAVI_BOOKMARK_DELIM); - sStr += ByteString::CreateFromInt32( nDefDrag ); - sStr += static_cast< char >(NAVI_BOOKMARK_DELIM); - sStr += ByteString::CreateFromInt32( nDocSh ); - rData.CopyByteString( SOT_FORMATSTR_ID_SONLK, sStr ); + rtl::OStringBuffer sStrBuf(rtl::OUStringToOString(aUrl, eSysCSet)); + sStrBuf.append(static_cast<char>(NAVI_BOOKMARK_DELIM)); + sStrBuf.append(rtl::OUStringToOString(aDescr, eSysCSet)); + sStrBuf.append(static_cast<char>(NAVI_BOOKMARK_DELIM)); + sStrBuf.append(static_cast<sal_Int32>(nDefDrag)); + sStrBuf.append(static_cast<char>(NAVI_BOOKMARK_DELIM)); + sStrBuf.append(static_cast<sal_Int32>(nDocSh)); + rData.CopyByteString(SOT_FORMATSTR_ID_SONLK, sStrBuf.makeStringAndClear()); } sal_Bool NaviContentBookmark::Paste( TransferableDataHelper& rData ) |