summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-03-11 16:00:03 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-03-11 18:51:35 +0100
commit36f143d59492be24d0b275d728f2c151e9123075 (patch)
tree9bb0f59e92d2943e2ab36d8562d3fb263508a72d /ucb
parent8fb6f4a74b00dbaa62cf75c1da46cd8c3f6e3a3c (diff)
webdav: Use plain OStringBuffer here, otherwise wrong string is created.
..with "true" instead of thePropName.name and thePropName.nspace which obviously breaks things. Change-Id: I6568e6a98c1793ebbe8ab1864bd8ad3995eee09c
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx b/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx
index 557a0e74983b..ef9e16dc4ca4 100644
--- a/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx
+++ b/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx
@@ -23,7 +23,7 @@
#include "webdavresponseparser.hxx"
#include <comphelper/seqstream.hxx>
-#include <rtl/ustrbuf.hxx>
+#include <rtl/strbuf.hxx>
using namespace com::sun::star;
@@ -95,7 +95,7 @@ serf_bucket_t * SerfPropFindReqProcImpl::createSerfRequestBucket( serf_request_t
{
// TODO is it really needed a Unicode string buffer?
// All properties and property names aren't supposed to be ASCII?
- rtl::OUStringBuffer aBuffer;
+ OStringBuffer aBuffer;
aBuffer.append( PROPFIND_HEADER );
// create and fill body bucket with requested properties
@@ -135,7 +135,7 @@ serf_bucket_t * SerfPropFindReqProcImpl::createSerfRequestBucket( serf_request_t
}
aBuffer.append( PROPFIND_TRAILER );
- aBodyText = rtl::OUStringToOString( aBuffer.makeStringAndClear(), RTL_TEXTENCODING_UTF8 );
+ aBodyText = aBuffer.makeStringAndClear();
body_bkt = serf_bucket_simple_copy_create( aBodyText.getStr(),
aBodyText.getLength(),
pSerfBucketAlloc );