summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ucb/source/ucp/webdav/SerfUri.cxx2
-rw-r--r--ucb/source/ucp/webdav/webdavresponseparser.cxx9
2 files changed, 5 insertions, 6 deletions
diff --git a/ucb/source/ucp/webdav/SerfUri.cxx b/ucb/source/ucp/webdav/SerfUri.cxx
index 894765580eba..1c116791c1f2 100644
--- a/ucb/source/ucp/webdav/SerfUri.cxx
+++ b/ucb/source/ucp/webdav/SerfUri.cxx
@@ -83,7 +83,7 @@ SerfUri::SerfUri( const OUString & inUri )
}
if ( !mAprUri.path )
{
- mAprUri.path = (char *)"/";
+ mAprUri.path = const_cast<char *>("/");
}
init( &mAprUri );
diff --git a/ucb/source/ucp/webdav/webdavresponseparser.cxx b/ucb/source/ucp/webdav/webdavresponseparser.cxx
index 95a451b72eac..f7a6ee5e0bd3 100644
--- a/ucb/source/ucp/webdav/webdavresponseparser.cxx
+++ b/ucb/source/ucp/webdav/webdavresponseparser.cxx
@@ -864,16 +864,15 @@ namespace
// get result
switch(eWebDAVResponseParserMode)
{
- // *(std::vector<T>*) & is a horrible hack but hopefully works,
- // I was not able to come up with something sane :-/
+ //TODO: Clean up reinterpret_casts:
case WebDAVResponseParserMode_PropFind:
- rResult = *(std::vector<T>*) &pWebDAVResponseParser->getResult_PropFind();
+ rResult = reinterpret_cast<std::vector<T> const &>(pWebDAVResponseParser->getResult_PropFind());
break;
case WebDAVResponseParserMode_PropName:
- rResult = *(std::vector<T>*) &pWebDAVResponseParser->getResult_PropName();
+ rResult = reinterpret_cast<std::vector<T> const &>(pWebDAVResponseParser->getResult_PropName());
break;
case WebDAVResponseParserMode_Lock:
- rResult = *(std::vector<T>*) &pWebDAVResponseParser->getResult_Lock();
+ rResult = reinterpret_cast<std::vector<T> const &>(pWebDAVResponseParser->getResult_Lock());
break;
}
}