summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-26 22:03:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-27 09:23:46 +0100
commit09e5f1e25ff00e35b02bbb41b20c8eb1a145b60d (patch)
tree93de7c5736b5d4da4bc42c0bd96ca6dec0ad4d76
parenta80391205afb2cfd8419e235bb8291c3668148ca (diff)
ByteString::CreateFromInt32->rtl::OStringBuffer::append
-rw-r--r--sw/source/ui/utlui/content.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/ui/utlui/content.cxx b/sw/source/ui/utlui/content.cxx
index a63193ac55..c78672d61c 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 )