diff options
Diffstat (limited to 'ucb/source/ucp/tdoc')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_provider.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_provider.cxx b/ucb/source/ucp/tdoc/tdoc_provider.cxx index 801dbc40daeb..d738d59bb935 100644 --- a/ucb/source/ucp/tdoc/tdoc_provider.cxx +++ b/ucb/source/ucp/tdoc/tdoc_provider.cxx @@ -189,12 +189,10 @@ ContentProvider::createDocumentContentIdentifier( 1 ); } - OUStringBuffer aBuffer; - aBuffer.append( TDOC_URL_SCHEME ":/" ); - aBuffer.append( aDocId ); + OUString aBuffer = TDOC_URL_SCHEME ":/" + aDocId; uno::Reference< ucb::XContentIdentifier > xId - = new ::ucbhelper::ContentIdentifier( aBuffer.makeStringAndClear() ); + = new ::ucbhelper::ContentIdentifier( aBuffer ); return xId; } |